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.

help: bind mode

Old posts that have not been replied to for several years.
Locked
f
faisal
Voice
Posts: 13
Joined: Tue Nov 04, 2003 5:56 am
Location: Singapore

help: bind mode

Post by faisal »

Hello

How do I make the bot notice a person when it detects a mode change.

-------------------------------------------------
(An example i made myself, this is what i want.)

ThebOt sets mode: +o thenick
-ThebOt- You are now a channel operator.
-------------------------------------------------
Error 1:

ThebOt sets mode: -o thenick
-ThebOt- You are now a channel operator.
-------------------------------------------------
Error 2:

ThebOt sets mode: +v thenick
-ThebOt- You are now a channel operator.
-------------------------------------------------

bind mode - * notice_op
proc notice_op {nick uhost hand chan change victim} {
puthelp "NOTICE $victim :You're now a channel operator."
}

I need some modifying help here. How do i only make the bot notice the user when it detects only a +o and not -o or +v and etc. I know by putting a * in the <mask> place will represent anything and thus any mode change detected, the bot will notice. But i dont want that. I only want +o mode to be detected. Please help. =)
User avatar
user
&nbsp;
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

The mask is matched against "#channel_name +/-mode", so to make it trigger the proc for a +o on any channel, use "*+o" as a mask. If you want it to work only on a particular channel, include the channel name in the mask too.
Have you ever read "The Manual"?
f
faisal
Voice
Posts: 13
Joined: Tue Nov 04, 2003 5:56 am
Location: Singapore

Post by faisal »

Geez! That is all i have to do huh? LoLx... okok.. thanks a lot!!
Locked