mIRC Home    About    Download    Register    News    Help

Print Thread
#258601 02/08/16 09:57 AM
Joined: Apr 2012
Posts: 9
G
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
G
Joined: Apr 2012
Posts: 9
Hi,

For dropping a mass of ChanServ registered channels, i need a script to post the drop code as reply to the following ChanServ message:

To avoid accidental use of this command, this operation has to be confirmed. Please confirm by replying with /msg ChanServ DROP #test03 36327e64:ba95bf4a

On that i've based the following script:

on *:NOTICE:*To avoid accidental use of this command*:?: {
if ($nick == ChanServ) {
/clipboard $22-
/msg ChanServ DROP $cb
}
}

I used the clipboard to simulate the actual situation.

But it fails with the following message:

-ChanServ- Invalid key for DROP.

Help! :-)

Last edited by geejeeNL; 02/08/16 09:57 AM.
Joined: May 2015
Posts: 249
Fjord artisan
Offline
Fjord artisan
Joined: May 2015
Posts: 249
Why not just "/msg ChanServ DROP $22-"?
Are you sure there is no "." or somethinf else at the end of the line?


Dont give a fish - teach to fish!
Joined: Apr 2012
Posts: 9
G
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
G
Joined: Apr 2012
Posts: 9
I've tried that both doesn't work.

If i do /debug @debug the following report shows:

-> server.ircnetwork.net CHANSERV drop #test5
<- :ChanServ!ChanServ@services.ircnetwork.net NOTICE geejee :To avoid accidental use of this command, this operation has to be confirmed. Please confirm by replying with /msg ChanServ DROP #test5 aa609c99:54c03f79
-> server.ircnetwork.net PRIVMSG ChanServ :DROP #test5 aa609c99:54c03f79
<- :ChanServ!ChanServ@services.ircnetwork.net NOTICE geejee :Invalid key for DROP.
-> server.ircnetwork.net PRIVMSG ChanServ :DROP #test5 aa609c99:54c03f79
<- :ChanServ!ChanServ@services.ircnetwork.net PART #test5 :Leaving
<- :ChanServ!ChanServ@services.ircnetwork.net NOTICE geejee :The channel #test5 has been dropped.
-> server.ircnetwork.net PART #test5

Both marked lines are the same, but the last one is copy-pasted by myself.

Last edited by geejeeNL; 02/08/16 12:11 PM.
Joined: Dec 2015
Posts: 148
Vogon poet
Offline
Vogon poet
Joined: Dec 2015
Posts: 148
There is $chr(2) at the end of the first code. I suspect chanserv sends bolded messages.

Code:
on *:notice:*To avoid accidental use of this command*:?: {
  if ($nick == chanserv) msg chanserv drop $strip($22-23)
}


Joined: Apr 2012
Posts: 9
G
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
G
Joined: Apr 2012
Posts: 9
Thanks Dazuz, it works smile


Link Copied to Clipboard