- on *:TEXT:adduser *:?:{
- if ($readini(database/userlist.ini,$chan,$address($nick,2)) == owner) || ($readini(database/global.ini,global,$address($nick,2)) == owner) {
- if ($2 == help) {
- notice $nick adduser allows you to add a user as a owner (aomn) a master(aom) or a operator (ao)
- notice $nick For this command use /msg $me adduser <channel> <nick> <flags>
- close -m $nick
- }
- else {
- if ($2 == $null) {
- Notice $nick adduser : not enough parameters
- notice $nick use /msg $me adduser <chan> <nick> <flags>
- close -m $nick
- }
- elseif ($3 == $null) {
- notice $nick You forgot to type a nickname
- notice $nick correct usage /msg $me adduser <channel> <nick> <flags>
- close -m $nick
- }
- elseif ($4 == $null) {
- notice $nick You forgot to type the flags
- notice $nick correct usage /msg $me adduser <channel> <nick> <flags>
- close -m $nick
- }
- else {
- if ($chr(35) isin $2) {
- if ($4 == aomn) {
- writeini database/userlist.ini $chan $address($3,2) owner
- Notice $nick Added $3 As an owner. He has acces to all my commands now
- notice $3 You have been added as a owner on $2
- notice $3 Use /msg $me showcommands for my commands
- notice $3 Don't forget if you find any bugs report them to my creator
- close -m $nick
- }
- elseif ($4 == aom) {
- writeini database/userlist.ini $chan $address($3,2) master
- Notice $nick Added $3 As a master. He has acces to my commands now
- Notice $3 You have been added as a master on $2
- notice $3 use /msg $me showcommands for my commands
- notice $3 Don't forget if you find any bugs report them to my creator
- close -m $nick
- }
- }
- }
- }
- }
- else {
- notice $nick You don't have acces to this command
- close -m $nick
- }
- }
Undefined
By: ewa | Date: Dec 20 2006 11:26 | Format: None | Expires: never | Size: 1.98 KB | Hits: 1401
Latest pastes
2 days ago
3 days ago
3 days ago
4 days ago
5 days ago