Code:
On *:TEXT:!ban*:#: {
  if ($read(reglist.txt,nw,$nick)) { 
    msg # banning $+($$2,.) He's been naughty
    msg # .ban $$2
  }
  else { msg # Sorry $nick you don't have the correct  privileges. }
}

On *:Text:!reg add*:#: {
  if ($read(reglist.txt,nw,$nick)) { write reglist.txt $$3 }
  else { msg # Sorry $nick you don't have the correct  privileges. }
}


Instead of putting your filename path, just put reglist.txt in your mircdir. Unless its mandatory that you need to use that long fname.

Last edited by SladeKraven; 31/03/14 08:33 PM.