bind msg - "!spammers" spammersm
proc spammersm {nick uhost handle text} {
if {([string match "*staff*" [string tolower $uhost]]) || ([string tolower $nick] == "oper") || ([matchattr $nick o])} {
set stats [open "spammers.dat" r]
gets $stats spammerz
close $stats
putserv "NOTICE $nick :\002$spammerz\002 spammers have been caught since 30.09.2002"
}
}
And when I change proc a bit it doesn't work, it should tho. I want it notice user with stats if uhost contains *staff* or nick is Oper or user has +o flag or above. It doesn't work even if user has *staff* string in uhost. I just wonder why doesn't the 2nd version work and it's digging me, I'd be grateful for help

proc spammersm {nick uhost handle text} {
if {(![string match "*staff*" [string tolower $uhost]]) || ([string tolower $nick] != "oper") || (![matchattr $nick o])} { return 0 }
set stats [open "spammers.dat" r]
gets $stats spammerz
close $stats
putserv "NOTICE $nick :\002$spammerz\002 spammers have been caught since 30.09.2002"
}