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.

Tcl error

Old posts that have not been replied to for several years.
Locked
j
jakeT

Tcl error

Post by jakeT »

extra characters after close-brace
while executing
"proc msg:invite {nick uhost hand arg"

I'm a bit new to this all so need a bit of help.

Code: Select all

# Channel where the bot will invite if flag set
set chan_1 "#test1"
set chan_2 "#test2"

bind msg -|I inviteme msg:invite

proc msg:invite {nick uhost hand arg}{
  global chan_1 chan_2
  if {![passwdok $hand [lindex [split $arg] 0]]}{
    putserv "NOTICE $nick :Incorrect password."
    return 0
  }
  putserv "INVITE $nick $chan_1"
  putserv "INVITE $nick $chan_2"
}
I'm trying to get users with the I flag to be able to do /msg <bot> inviteme <password> so they get invited to 2 +i channels.

Thanks for your help.

Jake.
j
jakeT

Post by jakeT »

doh, spotted the white space problem ie }{ should be } {
Locked