mIRC Home    About    Download    Register    News    Help

Print Thread
#249063 12/11/14 10:58 PM
Joined: Aug 2014
Posts: 32
S
Sparkz Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Aug 2014
Posts: 32
Using this to read mod names off a script:
if ($read(modlist.txt,nw,$nick)) {

is there a script where I can do !mod add (name) in chat that will auto add it to the file without me having to manually open the file?

Thank you

Sparkz #249064 12/11/14 11:14 PM
Joined: Apr 2014
Posts: 170
Vogon poet
Offline
Vogon poet
Joined: Apr 2014
Posts: 170
Code:
on *:TEXT:!mod add*:#: {
  if ($nick == yournick) {
    write modlist.txt $$3
    msg $chan $$3 has been added to the mod list!
  }
}

on *:TEXT:!mod del*:#: {
  if ($nick == yournick) {
    if ($read(modlist.txt,nw,$3)) write -dl $+ $readn modlist.txt
    msg # $$3 has been removed from the mod list!
  }
}



Link Copied to Clipboard