Ok this is a modified code from: CodeProphet - http://www.hawkee.com/snippet/2519/
I love his window for notices, but I wanted it to log when people were kicked or banned with the times, dates, and # so I could easily find it in the logs if someone had a complaint about why they were kicked/banned.
Thank you for the code, CodeProphet...If you perfer you can just add it to your snippet and I will take this one off.
I'm not the best at scripting, but it works, and I'm sure there was a better way to do it.
Oh and incase your new to this stuff...Paste it in the Remote Section. (ALT + R)
Thank you,
DaDealer
;****************************************;
;******* Made By: CodeProphet ******;
;******* Modified By: DaDealer ******;
;******* Some Credit would be nice ******;
;******* If you use it. ******;
;****************************************;
on ^*:notice:*:?:{
if (!$window(@notices)) { window -mel20 @notices }
if (. !isin $nick) && (????serv !iswm $nick) && ($network != $nick) {
echo -m @Notices $+(5-,$nick,-) $1- time: $time Date: $date | .linesep @notices | notices $nick
halt
}
}
alias ln return $line(@notices,$1,1)
alias notices {
if ($ln(0) = 0) { aline -l @notices $1 | sline -l @notices 1 | halt }
unset %notices2
set %notices $ln(0)
while (%notices) {
if ($1 != $ln(%notices)) { inc %notices2 }
if ($1 = $ln(%notices)) { sline -l @notices %notices | halt }
dec %notices
}
if (%notices2 = $ln(0)) { aline -l @notices $1 }
}
on *:input:@notices:{
if ($left($1,1) != /) {
.notice $sline(@notices,1) $1- | echo -a 2* notice sent to $+(",$sline(@notices,1),") ->12 $1- | .linesep @notices
}
}
on *:kick:*: {
notice $me $1- Channel: $chan Nick: $Knick
}
on *:ban:*: {
notice $me kick $1- Channel: $chan Nick: $nick
}