Changeset 56e72d5 for perl/modules/IRC/lib/BarnOwl/Module/IRC.pm
- Timestamp:
- Jan 13, 2008, 6:08:14 PM (17 years ago)
- Branches:
- master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 1fd5041b
- Parents:
- 05f0061
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/modules/IRC/lib/BarnOwl/Module/IRC.pm
rfe8cad8 r56e72d5 104 104 BarnOwl::new_command('irc-names' => \&cmd_names); 105 105 BarnOwl::new_command('irc-whois' => \&cmd_whois); 106 BarnOwl::new_command('irc-motd' => \&cmd_motd); 106 107 } 107 108 … … 245 246 } 246 247 248 sub cmd_motd { 249 my $cmd = shift; 250 my $conn = get_connection(\@_); 251 $conn->motd; 252 } 253 247 254 ################################################################################ 248 255 ########################### Utilities/Helpers ################################## … … 256 263 } 257 264 my $channel = $args->[-1]; 258 if ($channel =~ /^#/ and $channels{$channel} and @{$channels{$channel}} == 1) { 265 if (defined($channel) && $channel =~ /^#/ 266 and $channels{$channel} and @{$channels{$channel}} == 1) { 259 267 return $channels{$channel}[0]; 260 268 }
Note: See TracChangeset
for help on using the changeset viewer.