This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.
Old posts that have not been replied to for several years.
-
B
Barron
Post
by Barron »
I need help. I wrote this code
bind pub - !get getbot
proc getbot {nick host hand chan arg} {
global botone
set chanl [split $arg 0]
set bot [split $arg 1]
if {$bot == $botone} {
putserv "PRIVMSG $bot :join $chan1"
} else {
puthelp "NOTICE $nick :\0034Invalid bot"
}
}
Can anyone help?
-
caesar
- Mint Rubber
- Posts: 3778
- Joined: Sun Oct 14, 2001 8:00 pm
- Location: Mint Factory
Post
by caesar »
Replace:
Code: Select all
set chanl [split $arg 0]
set bot [split $arg 1]
with:
Code: Select all
set chanl [lindex [split $arg] 0]
set bot [lindex [split $arg] 1]
Once the game is over, the king and the pawn go back in the same box.
-
Sir_Fz
- Revered One
- Posts: 3794
- Joined: Sun Apr 27, 2003 3:10 pm
- Location: Lebanon
-
Contact:
Post
by Sir_Fz »
also
Code: Select all
putserv "PRIVMSG $bot :join $chan1"
should be
Code: Select all
putserv "PRIVMSG $bot :join $chanl"
because you have
set chanl [lindex [split $arg] 0]
not
set chan1...