ok, I shut the bot down completely and restarted it, went to test it again, and now I'm not getting a tcl error, but I'm getting this in the channel as the bots output: \{nickname\}X is not in the channel here's the code as it stands now: bind pub f kick, kick proc kick {nick host hand chan arg} { s...
tried that, same error :( here's the revised code just to make sure I did it right: bind pub f kick, kick proc kick {nick host hand chan arg} { set who [lindex [split $arg] 0] set who [string map {\{ \\\{ \} \\\}} $who] set reason [lrange $arg 1 end] if {![onchan $who $chan]} { putchan $chan "$...
bind pub f kick, kick proc kick {nick host hand chan arg} { set who [lindex [split $arg] 0] set reason [lrange $arg 1 end] if {![onchan $who $chan]} { putchan $chan "$who is not in the channel" } else { if {[botisop $chan]} {putkick $chan $who $reason} } return 0 } this code is working fo...
I'm having an issue with nicks that have {}'s in them an example of the problem comes from nicks like "{nick}X" I used: set who [lindex [split $args] 0] but whenever the nick follows the format listed above, I get the error: Tcl error [kick]: list element in braces followed by "X"...
on the network my bot runs on, they automatically add a string of characters to the hostmask of every user. some of the characters are static, and some are dynamic, but it follows the same pattern in every instance. I'm writing a ban script for the bot and would like to remove all the network added ...
please forgive me if this has been brought up before, I did multiple searches and couldn't find anything about it. when I'm logged into the party line of my bot, I keep getting this message every 5 minutes: [02:55pm] <WulfBot> [14:55] @#ChannelName (+trna) : [m/7 o/5 h/0 v/1 n/1 b/16 e/0 I/0] I'm pr...
for anyone interested, I got the script working, here was the final code: bind msg - !list servlist proc servlist {nick uh hand var} { set chan "#channel" foreach user [chanlist $chan] { if {[getuser [nick2hand $user $chan] XTRA status] != ""} { set title [getuser [nick2hand $use...
yes, I've tested it with two other people in the room who've had a status set, if they trigger it they see themselves but nobody else. if I trigger it I only see myself. if someone who doesn't have a status set, triggers it, they get nothing. it seems that this line: if {[getuser [nick2hand $user] X...
argh, i give up I've tried all the suggestions here and even quite a few modications of my own and no matter what I do, it only returns the name and status and title of the person who triggers the !list, and nobody else. ty everyone for your quick replies and attempts to help, if anyone comes up wit...
ok, I updated it again, and it's still only pm'ing the name and status of the person who triggers the script, and not everyone in the chanlist that has a status set. here's the updated script: bind msg - !list servlist proc servlist {nick uh hand var} { set chan "#channel" foreach user [ch...