[811] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

[D-O-H] r809 - / trunk/owl/perl/modules/IRC/lib/BarnOwl/Module

daemon@ATHENA.MIT.EDU (nelhage@MIT.EDU)
Thu Oct 29 18:09:58 2009

Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
To: dirty-owl-hackers@mit.edu
From: nelhage@MIT.EDU
Reply-to: dirty-owl-hackers@MIT.EDU
Date: Wed,  9 Jan 2008 01:26:19 -0500 (EST)

Author: nelhage
Date: 2008-01-09 01:26:19 -0500 (Wed, 09 Jan 2008)
New Revision: 809

Modified:
   /
   trunk/owl/perl/modules/IRC/lib/BarnOwl/Module/IRC.pm
Log:
 r27177@lunatique:  nelhage | 2008-01-09 01:23:14 -0500
 import is_private from ::Connection
 



Property changes on: 
___________________________________________________________________
Name: svk:merge
   - 6122c8b4-0e12-0410-9533-8bcd7c66c992:/local/dirty-owl-hacks:27173
6aa88b72-b502-0410-8cb4-a5dd0230fb79:/owl-local:1356
bb873fd7-8e23-0410-944a-99ec44c633eb:/local/barnowl:22510
bb873fd7-8e23-0410-944a-99ec44c633eb:/local/d-o-h:18636
   + 6122c8b4-0e12-0410-9533-8bcd7c66c992:/local/dirty-owl-hacks:27177
6aa88b72-b502-0410-8cb4-a5dd0230fb79:/owl-local:1356
bb873fd7-8e23-0410-944a-99ec44c633eb:/local/barnowl:22510
bb873fd7-8e23-0410-944a-99ec44c633eb:/local/d-o-h:18636

Modified: trunk/owl/perl/modules/IRC/lib/BarnOwl/Module/IRC.pm
===================================================================
--- trunk/owl/perl/modules/IRC/lib/BarnOwl/Module/IRC.pm	2008-01-09 05:26:15 UTC (rev 808)
+++ trunk/owl/perl/modules/IRC/lib/BarnOwl/Module/IRC.pm	2008-01-09 06:26:19 UTC (rev 809)
@@ -16,7 +16,7 @@
 use BarnOwl;
 use BarnOwl::Hooks;
 use BarnOwl::Message::IRC;
-use BarnOwl::Module::IRC::Connection;
+use BarnOwl::Module::IRC::Connection qw(is_private);
 
 use Net::IRC;
 use Getopt::Long;
@@ -193,10 +193,4 @@
     return $ircnets{$key};
 }
 
-# Determines if the given message recipient is a username, as opposed to
-# a channel that starts with # or &.
-sub is_private {
-    return shift !~ /^[\#\&]/;
-}
-
 1;


home help back first fref pref prev next nref lref last post