Advertisement
Guest User

Untitled

a guest
Oct 12th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.62 KB | None | 0 0
  1. use strict;
  2. use warnings;
  3. use Xchat qw(:all); # imports all the functions documented on this page
  4.  
  5. register( "IgnoreExt", "0.1",
  6.      "Extended ignore function which shows some simple line when the ignored user writes something" );
  7.  
  8. hook_server( "PRIVMSG", \&ignore_ext );
  9.  
  10. # ^kaffeebot\S*!\S*@\S*
  11.  
  12. sub ignore_ext {
  13.  
  14.  
  15.   my $ignoreNicks = "julistern";
  16.  
  17.  
  18.   my @foobar = split("@", $_[0][0]);
  19.      @foobar = split(":", $foobar[0]);
  20.      @foobar = split("!", $foobar[1]);
  21.  
  22.   my $nick = $foobar[0];
  23.  
  24.   if( lc($nick) eq lc($ignoreNicks) ) {
  25.     prnt "muh";
  26.     return EAT_XCHAT;  
  27.   }
  28.  
  29.   return EAT_NONE;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement