Advertisement
makimaki

User list manger

Nov 4th, 2010
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.29 KB | None | 0 0
  1. ;___________________________
  2. ;(---- Userlist Manger ----)
  3. ;___________________________
  4. ;By MakiMaki
  5. ;Edit User Levels or remove from User list
  6.  
  7. ;Menus
  8. menu Channel {
  9.   Userlist Manger: getulist
  10. }
  11. menu @Userlist {
  12.   Change Level: ul.change $$?="Enter new level for user:"
  13.   Remove User : ul.remove
  14.   Reload List : getulist
  15. }
  16.  
  17. ;User Lister
  18. alias getulist {
  19.   var %w @Userlist
  20.   $iif(!$window(%w),window -blk -t22 +benstx %w,/window -a %w)
  21.   clear %w | aline %w 7Level $chr(1) Gate $chr(9) Nick
  22.   aline %w 7Script Owners:
  23.   var %f 1
  24.   while ($ulist(*,Owner,%f)) {
  25.     aline %w 10Owner $v1 $ulist(*, Owner,%f).info
  26.     inc %f
  27.   }
  28.   aline %w 7Script Hosts:
  29.   var %f 1
  30.   while ($ulist(*,Host,%f)) {
  31.     aline %w 12Host $v1 $ulist(*, Host,%f).info
  32.     inc %f
  33.   }
  34.   aline %w 7Global Banlist:
  35.   var %f 1
  36.   while ($ulist(*,Banlist,%f)) {
  37.     aline %w 4Banlist $v1 $ulist(*, Banlist,%f).info
  38.     inc %f
  39.   }
  40. }
  41.  
  42. ;Change/Remove User LVL
  43. alias Ul.change {
  44.   var %s 1
  45.   while ($sline(@Userlist,%s).ln) {
  46.     .auser $1 $gettok($line(@Userlist,$v1),2-,32)
  47.     inc %s
  48.   }
  49.   getulist
  50. }
  51.  
  52. alias Ul.remove {
  53.   var %s 1
  54.   while ($sline(@Userlist,%s).ln) {
  55.     .ruser $gettok($line(@Userlist,$v1),1,32) $gettok($line(@Userlist,$v1),2,32)
  56.     inc %s
  57.   }
  58.   getulist
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement