Id: 3816; Nick: SilverRain; Timestamp: 2008-01-06 17:30:15; Pasted as: mIRC
Description: n/a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
on *:text:!adduser*:#: {
  if ($readini(userlist.ini,$chan,$address($nick,0)) == owner) { 
    if ($2 !ison $chan) { notice $nick $2 isn't on $chan $+ ! | halt }
    if (!$istok(owner master op voice banned,$3,32)) { notice $nick Invalid userlevel | halt }
    writeini userlist.ini $chan $address($2,0) $3
    notice $nick Added $2 ( $+ $address($2,0) $+ ) to userlist with level $3.
  }
}
;; DELUSER ;;
 
on *:TEXT:!deluser*:#: {
  if ($readini(userlist.ini,$chan,$ address($nick,0)) != owner) { notice $nick You don't have a high enough level to use this command! | halt }
  if ($2 !ison $chan) { notice $nick $2 isn't on $chan $+ ! | halt }
  remini userlist.ini $chan $address($2,0)
  notice $nick Deleted $2 ( $+ $address($2,0) $+ ) from userlist!
}
 
;; The on join ;;
 
on *:join:#: {
  if ($readini(userlist.ini,$chan,$address($nick,0)) == owner) { msg $chan Channel owner arrived | mode $chan +ov $nick }
  if ($readini(userlist.ini,$chan,$address($nick,0)) == master) { msg $chan Channel master arrived | mode $chan +ov $nick }
  if ($readini(userlist.ini,$chan,$address($nick,0)) == op) { msg $chan Channel operator arrived | mode $chan +o $nick }
  if ($readini(userlist.ini,$chan,$address($nick,0)) == voice) { msg $chan Channel voice arrived | mode $chan +v $nick }
  if ($readini(userlist.ini,$chan,$address($nick,0)) == banned) { mode $chan +b $address($nick,0) | kick $chan $nick You are BANNED from this channel! }
}
 
on *:text:*:#: {
  if ($readini(userlist.ini,$chan,$address($nick,0)) != owner) || ($readini(userlist.ini,$chan,$address($nick,0)) != master)  { notice $nick You don't have a high enough level to use this command! | halt }
  if ($1 == !op) { 
    if (!$2) { mode $chan +o $nick }
    if ($2) { mode $chan +o $2 }
  }
  if ($1 == !deop) { 
    if (!$2) { mode $chan -o $nick }
    if ($2) { mode $chan -o $2 }
  }
  if ($1 == !mode) { 
    mode $chan $2
  }
  if ($1 == !kick) {
    kick $chan $2 Kicked by order or $nick - Reason: $3-
  }
  if ($1 == !ban) {
    ban $chan $address($2,1)
  }
  if ($1 == !kickban) {
    ban -k $chan $address($2,1) Banned by order of $nick - Reason: $3
  }
  if ($1 == !mute) { 
    if ($2 isban $chan) { notice $nick $2 is already muted! | halt }
    mode $chan +b $address($2,1)
    notice $nick Muted $2
  }
  if ($1 == !unmute) {
    if ($2 !isban $chan) { notice $nick $2 isn't muted! | halt }
    mode $chan -b $address($2,1)
    notice $nick Unmuted $2
  }
  if ($1 == !topic) {
    /topic $chan $2-
  }
  if ($1 == !banclear) {
    /mode $chan +b-b *!*@* *!*@* 
    notice $nick Unbanned all users
  }
}
Options: New, Download,
, mIRC Parser;
Copyright © 2006 by Zyberdog - Some rights reserved. (Browse/Disclaimer/Stats/About)
Nothing to see here.