is it possible to <<filter>> the notices from X?
I want it not to show in the partyline these notices:
-X (cservice@undernet.org)- Specified ban is already in my banlist!
and don't tell me anything like console flags to avoid seeing notices at all
«A fantastic spaghetti is a spaghetti that does not exist»
bind raw X NOTICE xnotc
proc xnotc {f k a} {
expr {[string first "Specified ban is already in my banlist!" $a]>-1}
}
...Or could of course skip the adding and make the bind for - instead of X and do if {[string eq $f "X!cservice@undernet.org"]} {return 0} before the expr.
user wrote:
...Or could of course skip the adding and make the bind for - instead of X and do if {[string eq $f "X!cservice@undernet.org"]} {return 0} before the expr.
he would have to do that cause bind raw ignores flags
Options can be abbreviated. That means you only need the minimum number of chars that uniquely identifies an option..eg:
'string e ...' works fine because 'equal' is the only option starting with an 'e', but if you'd do 'string i ...' you get an error message like 'ambiguous option "i": must be <list of options>'.
Commands that accept abbreviated options has this stated on their manual page. So check the manual before doing it and keep in mind that options added in a future version of Tcl may render your option ambiguous.
Yes, I agree with you user on the abbreviated part, but seems that is not working propertly on Realz script. This might be an old TCL or something like this, not shure of it anyway.
Once the game is over, the king and the pawn go back in the same box.