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.

message script

Old posts that have not been replied to for several years.
Locked
c
collett9
Voice
Posts: 11
Joined: Mon Dec 15, 2003 11:38 pm

message script

Post by collett9 »

I am trying to make a script that when you type

.msg yourircnick message goes here


that it will private message "yourircnick" with "message goes here"

currently this is what I have:

Code: Select all


bind pub - .msg cmd:msgper

proc cmd:msgper {nick host hand chan text} {
   putquick "PRIVMSG $text"
}



but that will message the person with only the last letter of the message

:roll:
D
DrN

Post by DrN »

That's happening becuse there need to be a : before the text to send. The correct format is:

putquick "PRIVMSG nick :Text to send"

So you'd need to parse out the nick:

putquick "PRIVMSG [lindex $text 0] :[lrange $text 1 end]"
Locked