mIRC Homepage

UserMode Problem

Posted By: wspnut

UserMode Problem - 20/04/03 04:06 PM

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
Posted By: gerdigos

Re: UserMode Problem - 20/04/03 07:25 PM

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!
Posted By: KingTomato

Re: UserMode Problem - 22/04/03 04:19 PM

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 }
}
© 2020 mIRC Discussion Forums