mIRC Home    About    Download    Register    News    Help

Print Thread
#20182 20/04/03 04:06 PM
Joined: Apr 2003
Posts: 1
W
wspnut Offline OP
Mostly harmless
OP Offline
Mostly harmless
W
Joined: Apr 2003
Posts: 1
OK, I have this in my script:

on 1500:text:*clear*:#: {
if ($1 == pig && $2 == clear && $3 == gb) {
/write -c data\guestbook.txt
.msg $nick All messages in Pig's guestbook have been cleared.
}
else { halt }
}

A 2000-level user (2000:*!*pnutIRC@*.asm.bellsouth.net) should be able to access the 'pig clear gb' command correct?

Because it doesn't work. I have to set that user to 1500 for it to work.

confused confused confused

#20183 20/04/03 07:25 PM
Joined: Feb 2003
Posts: 76
G
Babel fish
Offline
Babel fish
G
Joined: Feb 2003
Posts: 76
You're making a big mistake. Read through mIRC's helpfile in the "Comparing Levels" section, and you'll see that you need to make it a:
on >= 1500:text:*clear*:#: { etc. etc. etc. }
That should definately work!

#20184 22/04/03 04:19 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
3,5,6:goat!khaled@mirc.com

The first level is a general access level, which means that the user can access all levels equal to or less than 3.

Just and FYI, the 1500 level can be accessed by a user with 2000. "All levels equal to or less than..." is the key. grin


alaso on a side note, you may try the following....
Code:
on 1500:text:pig *:#: {
  if (($2 == clear) && ($3 == gb)) {
    /write -c data\guestbook.txt 
    .msg $nick All messages in Pig's guestbook have been cleared.
  }
  ; this code is completly uneccisary...
  ; else { halt }
}


-KingTomato

Link Copied to Clipboard