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.

noob msg binding problems

Old posts that have not been replied to for several years.
Locked
U
Ulath
Voice
Posts: 4
Joined: Sun Oct 31, 2004 4:39 pm

noob msg binding problems

Post by Ulath »

I have a problem with the msg event binding, I have:

Code: Select all


proc whatever { nick host handle msg } {

putlog "$msg"
puthelp "PRIVMSG $nick $msg"

}

Simply to echo whatever a user says after the command, but while the putlog works and gives the whole string, the puthelp (and putserv) commands both only give the last word. No matter what I've tried it always seems to only give the last word, except if I specifically do a lindex $msg 0 .. x

Its probably a really simple problem, but just cant seem to solve it.
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

Code: Select all

puthelp "PRIVMSG $nick :$msg"
Locked