Advertisement
intersys

Untitled

Jun 9th, 2012
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 2.40 KB | None | 0 0
  1. ;;;;intersys;;;;;
  2. on *:text:!user*:*:{
  3.   if ($2 == add) {
  4.     if ($3 ison %Achan) && ($regex($4,/Admin|Owner/i)) && (!$readini(Users.ini,$5,user)) && ($qauth($3)) {
  5.       writeini -n Users.ini $5 Nick $3
  6.       writeini -n Users.ini $5 Level $4
  7.       writeini -n Users.ini $5 User $5
  8.       writeini -n Users.ini $5 Pass $6
  9.       writeini -n Users.ini $5 QAcc $qauth($3)
  10.       writeini -n Users.ini $5 Logged OFF
  11.       msg $nick User added successfully! with the details: User: $5 $+ , Password: $6 $+ , $+ Level: $4 $+ , QAccount: $qauth($3) $+ .
  12.     }  
  13.     if ($3 !ison %Achan) { msg $nick $3 Must to be on the Channel: %AChan }
  14.     elseif (!$regex($4,/Admin|Owner/i)) { msg $nick You must write the level of the user be (Admin/Owner). }
  15.     elseif ($readini(Users.ini,$5,user)) { msg $nick The user $5 is already on the user list. }
  16.     elseif (!$qauth($nick)) { msg $nick The user $5 must to set //mode $me +x. }
  17.     elseif (6 > $len($6)) { msg $nick The user password must to be more then 6 letters. }
  18.   }  
  19.   if (rem* iswm $2) || (del* iswm $2) {
  20.     if ($readini(Users.ini,$3,user)) {
  21.       remini Users.ini $3
  22.       msg $nick The user $3 is successfuly delete from the user list
  23.     }
  24.     else { msg $nick No Such User $3 }
  25.   }
  26.   if ($2 == login) {
  27.     if ($readini(users.ini,$3,pass) == $4) {
  28.       writeini -n Users.ini $3 Logged ON
  29.       msg $nick You are logged in successfuly! to user $3 $+ .
  30.     }
  31.     elseif ($usrinf(3).logged == on) msg $nick You are already logged in!
  32.     else {
  33.       msg nick The user or the password are worng.
  34.     }
  35.   }
  36.  
  37. }
  38. alias usrinf {
  39.   if ($prop == logged) { return $readini(users.ini,$1,logged) }
  40.   elseif ($prop == lvl) { return $readini(users.ini,$1,level) }
  41.   elseif ($prop == nick) { return $readini(users.ini,$1,nick) }
  42.   elseif ($prop == qacc) { return $readini(users.ini,$1,qacc) }
  43.   elseif ($prop == user) { return $readini(users.ini,$1,user) }
  44. }
  45.  
  46. alias qauth {
  47.   if (!$isid) || (*.??.quakenet.org !iswm $server) !return
  48.   if ($ial($1).host) if ($regex($ial($1).host,(.+?)\.users\.quakenet\.org)) !return $regml(1)
  49.   if ($ial($1).mark) !return $v1
  50.   !set %getQauth [ $+ [ $1 ] ] -
  51.   !.who $1 n%nat,101
  52.   !var %i = 10
  53.   while (%i) && (%getQauth [ $+ [ $1 ] ] == -) {
  54.     sleep 10
  55.     !dec %i
  56.   }
  57.   !var %return = $iif(%getQauth [ $+ [ $1 ] ] == -,$null,$v1)
  58.   !unset %getQauth [ $+ [ $1 ] ]
  59.   if (%return) !.ialmark $1 $v1
  60.   !return %return
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement