mIRC Home    About    Download    Register    News    Help

Print Thread
kick protect #112101 21/02/05 05:41 AM
Joined: Feb 2005
Posts: 194
A
alhammer Offline OP
Vogon poet
OP Offline
Vogon poet
A
Joined: Feb 2005
Posts: 194
Hey. I borrowed this code from Andy: http://forums.mirc.com/showflat.php?Cat=0&Number=112906&Main=112900 It's working GREAT. However, can someone please tell me how to send a message to the channel saying that nick has been added to protect list, and if/when they are removed. Thanks! grin


"God sometimes puts us in the dark for us to see the light"
Re: kick protect #112102 21/02/05 05:50 AM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
on *:dialog:protect:sclick:4: {   
  set %protect.add $$?="Enter Word:"
  write protect1.txt did -a protect 3 %protect.add   
  write protect2.txt %protect.add 
  did -a protect 3 %protect.add
  if ($active ischan) { msg $active %protect.sel has been added to protect list. }

}

on *:dialog:protect:sclick:5: {  
  write -dw $+ "* $+ %protect.sel $+ *" protect1.txt   
  write -dw $+ "* $+ %protect.sel $+ *" protect2.txt 
  did -d protect 3 $did(protect,3).sel
  did -b protect 5
  if ($active ischan) { msg $active %protect.sel has been deleted from protect list. }
}

Re: kick protect #112103 21/02/05 05:52 AM
Joined: Feb 2005
Posts: 194
A
alhammer Offline OP
Vogon poet
OP Offline
Vogon poet
A
Joined: Feb 2005
Posts: 194
Thanks Andy! Works Perfect.


"God sometimes puts us in the dark for us to see the light"
Re: kick protect #112104 21/02/05 05:53 AM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
You're welcome.