mIRC Home    About    Download    Register    News    Help

Print Thread
#153163 11/07/06 10:12 PM
Joined: Jul 2006
Posts: 16
S
Sturm Offline OP
Pikka bird
OP Offline
Pikka bird
S
Joined: Jul 2006
Posts: 16
say i want to make a command that only users in a .txt file can use.
when someone who is not listed in the .txt file tries to use it, it does nothing. Here is what i have:
Code:
 on @*:text:!op*:#: {
  if ($nick isin accesslist.txt) {
  mode # +o $2
  }
  else {
  }
}


can someone correct it?

#153164 11/07/06 10:20 PM
Joined: Dec 2002
Posts: 37
X
Ameglian cow
Offline
Ameglian cow
X
Joined: Dec 2002
Posts: 37
Code:
on @*:text:!op*:#: {
  if ($read(accesslist.txt,w,* $+ $nick $+ *) != $null) {
    mode # +o $2
  }
  else {  }
}


Have the entries in accesslist.txt as *Nick*

#153165 11/07/06 10:43 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Code:
 on @*:text:!op*:#: $iif($read(accesslist.txt,ns,$nick),mode # +o $iif(!$2,$nick,$2)) 


Very similar to my response to your other post, but with this one getting the nicks from the file accesslist.txt rather than a variable


Link Copied to Clipboard