Changeset f81176c for perl/modules/IRC/lib/BarnOwl/Module
- Timestamp:
- Dec 17, 2009, 10:52:39 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 99c1f46
- Parents:
- cd12307
- git-author:
- Alex Vandiver <alexmv@mit.edu> (10/16/09 01:23:08)
- git-committer:
- Alex Vandiver <alexmv@mit.edu> (12/17/09 22:52:39)
- Location:
- perl/modules/IRC/lib/BarnOwl/Module
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/modules/IRC/lib/BarnOwl/Module/IRC.pm
rcd12307 rf81176c 59 59 'admin messages. Intended for debugging and development use only.' 60 60 }); 61 61 62 BarnOwl::new_variable_string('irc:skip', { 63 default => 'welcome yourhost created ' . 64 'luserclient luserme luserop luserchannels', 65 summary => 'Skip messages of these types', 66 description => 'If set, each (space-separated) message type ' . 67 'provided will be hidden and ignored if received.' 68 }); 69 62 70 register_commands(); 63 71 register_handlers(); … … 120 128 $irc->timeout(0); 121 129 } 130 } 131 132 sub skip_msg { 133 my $class = shift; 134 my $type = lc shift; 135 my $skip = lc BarnOwl::getvar('irc:skip'); 136 return grep {$_ eq $type} split ' ', $skip; 122 137 } 123 138 -
perl/modules/IRC/lib/BarnOwl/Module/IRC/Connection.pm
r3b4ba7d rf81176c 131 131 sub on_admin_msg { 132 132 my ($self, $evt) = @_; 133 return if BarnOwl::Module::IRC->skip_msg($evt->type); 133 134 BarnOwl::admin_message("IRC", 134 135 BarnOwl::Style::boldify('IRC ' . $evt->type . ' message from '
Note: See TracChangeset
for help on using the changeset viewer.