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.

How to make command space command

Old posts that have not been replied to for several years.
Locked
s
squire
Voice
Posts: 2
Joined: Thu Sep 22, 2005 4:34 am

How to make command space command

Post by squire »

hi i was wondering how you can make a bind like this.

e.g ce op <nick>

ce = bot shortnick "Cepheus"

so how does one put a space inbetween the commands
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

looking for

Code: Select all

bind pubm - "% ce op *" proc
or

Code: Select all

bind pub - ce procedur
proc procedur {n u h c a} {
  if {[lindex [split $a] 0]=="op"}{
    ...
  }
}
?
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
s
squire
Voice
Posts: 2
Joined: Thu Sep 22, 2005 4:34 am

Post by squire »

how about a set statement and have like $cc.
e.g set $cc "ce"

bind pubm - $cc

hmmm i dont know
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

It's

Code: Select all

set cc "ce"
without the $.
Locked