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.

Multiple ctcps

Old posts that have not been replied to for several years.
Locked
x
xces

Multiple ctcps

Post by xces »

Heya, i read that the CTCP command is not stackable, but i am having problems with using the ctcp:flooder (in the tcl archive section)

Bind raw is not working for some reason...

Are there any ways to accept multiple ctcps?

I want somethink like this:
/ctcp [bot] [cmd] [parm1] [parm2]

So first i have to check for [cmd], and then process the [cmd] with the [parms]

Any tips / sample scripts?
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Make one proc to bind to the cmd thing, then in that proc, you have to process the subcommand yourself. Basically, get the subcmd using split/lindex, then do something like

Code: Select all

if {$subcmd == "cmd1"} {
  blah blah
} elseif {$subcmd == "cmd2"} {
  blah blah
}
I think that's what your'e asking anyway..
Locked