kp.txt
来自「在上载一个bot源码给喜欢研究僵尸网络的朋友」· 文本 代码 · 共 33 行
TXT
33 行
;@@@
;@@@ 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 + =
减小字号Ctrl + -
显示快捷键?