Hello,
Please go through the snippet i have which i often use.
on *:NOTICE:*:*: { if ($window(Notice)) && ($nick != $me) { /window -k0 @Notice //aline -n @Notice 10 $+[,$time,] 10[NOTICE] 14 $chan 4 $nick noticed you saying:12 } elseif ($nick != $me) { /window -k0 @Notice //aline -n @Notice 10 $+[,$time,] 10[NOTICE] 14 $chan 4 $nick noticed you saying:12 $1- } } on 1:BAN:#:{ if ($me isin $nick) { Halt } /window -k0 @Kicks/Bans /aline -n @Kicks/Bans 10 $+[,$time,] 10 10[BAN]14 $chan 4 $nick set mode12 $1- } on 1:KICK:#:{ if ($me isin $nick) { Halt } /window -k0 @Kicks/Bans /aline -n @Kicks/Bans 10 $+[,$time,] 4[KICK]14 $chan 4 $nick kicked $knick 12: $1- } on 1:VOICE:#:{ if ($me isin $nick) { Halt } /window -k0 @Channels /aline -n @Channels 10 $+[,$time,] 10[VOICE]14 $chan 4 $nick 7voiced12 $vnick } on 1:DEVOICE:#:{ if ($me isin $nick) { Halt } /window -k0 @Channels /aline -n @Channels 10 $+[,$time,] 10[Devoice]14 $chan 4 $nick 7devoiced12 $vnick } on 1:HELP:#:{ if ($me isin $nick) { Halt } /window -k0 @Channels /aline -n @Channels 10 $+[,$time,] 10[HALFOP]14 $chan 4 $nick 7halfoped12 $hnick } on 1:DEHELP:#:{ if ($me isin $nick) { Halt } /window -k0 @Channels /aline -n @Channels 10 $+[,$time,] 10[DEHALFOP]14 $chan 4 $nick 7Dehalfoped12 $hnick } on 1:OP:#:{ if ($me isin $nick) { Halt } /window -k0 @Channels /aline -n @Channels 10 $+[,$time,] 10[OP]14 $chan 4 $nick 7oped12 $opnick } on 1:DEOP:#:{ if ($me isin $nick) { Halt } /window -k0 @Channels /aline -n @Channels 10 $+[,$time,] 10[DEOP]14 $chan 4 $nick 7deoped12 $opnick } on 1:JOIN:#:{ if ($me isin $nick) { Halt } /window -k0 @Join/Part/Quit /aline -np @Join/Part/Quit 1 $+[,$time,] 44[Join]27 $chan 4 $nick 1 [ $wildsite ] } on 1:PART:#:{ if ($me isin $nick) { Halt } /window -k0 @Join/Part/Quit /aline -n @Join/Part/Quit 1 $+[,$time,] 48[Part]27 $chan 4 $nick 1 [ $wildsite ] } ;ON *:QUIT: { ;if ($me isin $nick) { Halt } ;/window -k0 @Join/Part/Quit ;/aline -n @Join/Part/Quit 1 $+[,$time,] 4[Quit]14 4 $nick 1 [ $wildsite ] ;} ###HL on *:TEXT:*:#:$highcheck($1-) on *:ACTION:*:#:$highcheck($1-) alias -l highcheck { if ($regex($1-,/\Q $+ $me $+ \E/iS)) { /window -k0 @Highlights /aline -n @Highlights 10 $+[,$time,] 10[Highlight] 14 $chan 4 $nick Highlighted you 12: $1- } } on *:Join:#: { var %host_to_search_for = $address($nick,2) var %number_from_that_host = $ialchan(%host_to_search_for,$chan,0) if (%number_from_that_host > 1) { ;we have clones! ;first set up our vars and loop var %count = 0 unset %clones :loop inc %count ;loop through every nick, adding the nicks to %clones var %clones = %clones $ialchan(%host_to_search_for,$chan,%count).nick if (%count < %number_from_that_host) { goto loop } /window -k0 @Clones //aline -n @Clones 10 $+[,$time,] 10[CLONES] 14 $chan 7-Clones Detected- 124 %count 7Clones From 12 $address($nick,2) //aline -n @Clones 10 $+[,$time,] 10[CLONES-Nicks] 14 $chan : 12 %clones } }
I have hide join, part & quit events into a separate window just so i wouldnt see it on the mains but in a different window. It helps me in ignoring abusive nicks but still can get it logged whenever i wish to add them into a blacklist.
any modification or changes for betterment of this code is welcome.
Thanks