Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ON 1:TEXT:*:?: {
- if ($1 == !Login) {
- var %pass = $readini(SeconBOT-Users.ini,$2,Password)
- if (!%pass) { msg $nick 0,1You have entered wrong username. | Halt }
- if (%pass != $3) { msg $nick 0,1You have entered wrong password. | Halt }
- var %adr = $iif($address($nick,2),$ifmatch,$nick)
- var %accessLevel = $readini(SeconBOT-Users.ini,$2,Level)
- .auser Loggedin $nick %accessLevel
- writeini SeconBOT-Loggedin.ini %adr Username $2
- msg $nick 0,1You are now logged in to15 $2 0with (15 $+ %adr $+ 0).
- msg #Secon 15,1 $+ $nick 0is now logged in to15 $2 0( $+ 14 $+ $ulist($nick).info $+ 0 $+ ) with (15 $+ %adr $+ 0).
- }
- }
- ON Loggedin:TEXT:*:?: {
- if ($1 == !Register) {
- if (!$2 || !$3 || !$4) { msg $nick 0,1You have entered a wrong syntax for this command! | Halt }
- var %userExists = $readini(SeconBOT-Users.ini,$2,Level)
- if (%userExists) { msg $nick 0,1 The username 14 $+ $2 0is already in use! | Halt }
- writeini SeconBOT-Users.ini $2 Password $3
- writeini SeconBOT-Users.ini $2 Level $4
- msg $nick 0,1Successfully registered a new user:14 $2 0(15 $+ $4 $+ 0).
- }
- }
- ON Loggedin:JOIN:#: {
- if (# != #Secon) { Halt }
- .ruser $nick
- }
- ON Loggedin:PART:#Secon: {
- var %adr = $iif($address($nick,2),$ifmatch,$nick)
- var %log = $readini(SeconBOT-Loggedin.ini,%adr,Username)
- msg $nick 0,1You are now logged out from14 %log $+ 0!
- msg #Secon 15,1 $+ $nick $+ 0 is now logged out from 14 $+ %log $+ 0account.
- .ruser $nick
- }
Add Comment
Please, Sign In to add comment