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.

binding a single mode only

Old posts that have not been replied to for several years.
Locked
User avatar
z_one
Master
Posts: 269
Joined: Mon Jan 14, 2002 8:00 pm
Location: Canada

binding a single mode only

Post by z_one »

Hi,

I need to bind the +R mode ONLY to the procedure foo.
so I used the following code

Code: Select all

bind mode - "*+R*" foo
Still when someone sets a limit on the channel, or chanserv ops someone .... the proc foo is called ! Why is that ?
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

you should read up on the masks
correct bind should be

Code: Select all

bind mode - "* +R" foo
Elen sila lúmenn' omentielvo
User avatar
z_one
Master
Posts: 269
Joined: Mon Jan 14, 2002 8:00 pm
Location: Canada

Post by z_one »

Ooops, my mistake !
Thanks for correcting that :)
(14) MODE (stackable)
bind mode <flags> <mask> <proc>

The <mask> will have the channel prefixed (ie, "#turtle +m")
Locked