mIRC Homepage
Posted By: Techchef Op on PM - 01/03/16 11:53 PM
Hello
I have this script working well to op people who type !helpme in the main chat...But I want it to work when someone sends my bot a PM with !helpme Can this be done?
Code:
on !1:TEXT:*!helpme*:#:/mode $chan +o $nick
Posted By: Nillen Re: Op on PM - 02/03/16 06:36 AM
in an on text event you're asked to specify the location of the message. In the script you posted, the location is :#: meaning ANY CHANNELS. As per the help files, if you change that to :?: it will mean for ANY PRIVATEMESSAGES - Note that you would also have to manually specify the channel from that point on, $chan is only present in the case when the message is written in the channel.
Code:
on !1:TEXT:*!helpme*:?:/mode #channelname +o $nick
Posted By: Techchef Re: Op on PM - 02/03/16 05:05 PM
Thanks
© mIRC Discussion Forums