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.

Bind Problem :-/

Old posts that have not been replied to for several years.
Locked
J
Jas0n

Post by Jas0n »

I want to be able to change the cmd symbol but how do i add that to the Var ive tried

bind pub -|- "$cmdsymbol help" help
bind pub -|- [$cmdsymbol help] help

And others but no luck :sad:

### VARS
set cmdsymbol "!"

### BINDS
bind pub -|- !help help

### Help
proc help {nick host handle chan} {
global cmdsymbol
puthelp "NOTICE $nick :Commands available are:"
puthelp "NOTICE $nick :$cmdsymbol PATime"
}

Also if u know how to put text right next to a var! Trying to put $cmdsymbol and PATime together.

Thanks,

Jas0n
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

${cmdsymbol}PATime

reason the binds are failing is that you're trying to bind to a multi-word string (ie, its got a space in it). bind pub can only bind to single word commands.
J
Jas0n

Post by Jas0n »

Ah - Thank-you! :]
Locked