- on *:TEXT:adduser *:?:{
- if ($readini(database/userlist.ini,$2,$address($nick,2)) == owner) || ($readini(database/global.ini,global,$address($nick,2)) == owner) {
- if (!$3) {
- notice $nick You forgot to type a nickname
- notice $nick correct usage /msg $me adduser <channel> <nick> <flags>
- close -m $nick
- }
- elseif (!$4) {
- notice $nick You forgot to type the flags
- notice $nick correct usage /msg $me adduser <channel> <nick> <flags>
- close -m $nick
- }
- elseif ($chr(35) isin $2) && ($4 == +aomn) {
- writeini database/userlist.ini $chan $address($3,2) owner
- writeini database/hosts.ini hosts $address($3,2) chanowner
- 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 ($chr(35) isin $2) && ($4 == +aom) {
- writeini database/userlist.ini $chan $address($3,2) master
- writeini database/hosts.ini hosts $address($3,2) chanmaster
- 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
- }
- elseif (!$2) {
- Notice $nick adduser : not enough parameters
- notice $nick use /msg $me adduser <chan> <nick> <flags>
- close -m $nick
- }
- }
- else { notice $nick You don't have acces to this command
- close -m $nick
- }
- }
Undefined
By: breulz | Date: Dec 20 2006 12:28 | Format: None | Expires: never | Size: 1.68 KB | Hits: 1341
Latest pastes
53 minutes ago
10 hours ago
1 days ago
2 days ago
2 days ago