mIRC Home    About    Download    Register    News    Help

Print Thread
Op on PM #256928 01/03/16 11:53 PM
Joined: Jan 2016
Posts: 43
T
Techchef Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2016
Posts: 43
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

Re: Op on PM [Re: Techchef] #256930 02/03/16 06:36 AM
Joined: Dec 2013
Posts: 779
N
Nillen Offline
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
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


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Re: Op on PM [Re: Nillen] #256940 02/03/16 05:05 PM
Joined: Jan 2016
Posts: 43
T
Techchef Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2016
Posts: 43
Thanks