📄 kp.txt
字号:
;@@@
;@@@ DreamBot IRC Bot 5.1
;@@@ File description: kick protection
;@@@ Design & coding: Madar Petru
;@@@ (C) Copyright 2004-2005 by Madar Petru. All rights reserved.
;@@@
on 500:text:*kp*:#: {
if ($1 == %c $+ kp) {
if ($2 == $null) { .msg $nick Command incomplete. Syntax: %c $+ kp <on|off>. | halt }
if ($2 !== $null) {
if ($2 == on) { .enable #kick | .msg $nick The Kick protection is now on. | halt }
if ($2 == off) { .disable #kick | .msg $nick The Kick protection is now off. | halt }
else { .msg $nick >>> Error: Invalid parameters. Available parameters: ON/OFF. | halt }
}
}
}
on 500:text:kp*:?: {
if ($2 == $null) { .msg $nick Command incomplete. Syntax: /msg $me kp <on|off>. | halt }
if ($2 !== $null) {
if ($2 == on) { .enable #kick | .msg $nick The Kick protection is now on. | halt }
if ($2 == off) { .disable #kick | .msg $nick The Kick protection is now off. | halt }
else { .msg $nick >>> Error: Invalid parameters. Available parameters: ON/OFF. | halt }
}
}
#kick on
on @1:kick:#: {
if ($nick == $me) { halt }
if ($level($mask($address($nick,2),2)) < $level($mask($address($knick,2),2))) { .mode $chan -o+b $nick $mask($address($nick,2),2) | kick $chan $nick >>> Illegal kick. | .invite $knick $chan }
else { halt }
}
#kick end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -