Userlevels - 22/12/05 07:30 PM
Hi there,
First of all, I hope you can help me.
I'm making a new bot for a friend of me, he want some userlevels:
I have this code to add userlevels to the userlist:
And yes, it works, so far. After adding a useron level 100, you will get this in the userlist:
But, when that user joins #lol, the bots says that user is a channelmaster. But he's only a channelmaster of #chan, so he may not have the permissions for #lol.
I've this code to detect a user with userlevel 100
First of all, I hope you can help me.
I'm making a new bot for a friend of me, he want some userlevels:
Code:
; 1 (Normal user) ; 10 (Channel admin) ; 100 (Channel master) ; 1000 (Bot master)
I have this code to add userlevels to the userlist:
Code:
on 1000:text:.adduser * *:#: { if ($3 == 1000) { auser 1000 $address($2,1) notice $nick --» Done. } elseif ($3 == 100) { auser 100 $+ $chan $address($2,1) notice $nick --» Done. } elseif ($3 == 10) { auser 10 $+ $chan $address($2,1) notice $nick --» Done. } else notice $nick --» Unknown Userlevel. }
And yes, it works, so far. After adding a useron level 100, you will get this in the userlist:
Code:
100#chan:*!*Identd@hostname.ext
But, when that user joins #lol, the bots says that user is a channelmaster. But he's only a channelmaster of #chan, so he may not have the permissions for #lol.
I've this code to detect a user with userlevel 100
Code:
on 100$chan:join:#: { msg $chan --» Channel master (Level 100) $nick joined $chan $+ ! (Typ .op) } on 100$chan:text:.op:#: { mode $chan +o $nick }