deban

来自「EPIC IRC客户端。来源于IRCII客户端但做了很多性能和功能的优化。」· 代码 · 共 73 行

TXT
73
字号
/* * ban removers, 1993, 1997 * This script requires ircII-EPIC4. */# returns non-0 if $0 matches or is matched by $1-, 0 if not.alias comatch @ function_return = match($*) || rmatch($*)alias deban_mode {        fe ($*) bx by bz {                @ :moder = bz?[-bbb]:by?[-bb]:bx?[-b]:[]                if (moder) {                        mode * $moder $bx $by $bz                }        }}# remove all bans on current channelalias deban uniban *# remove all bans that could cover nicknamealias unban uniban $0!$uh($0)# remove all bans matching or matched by patternalias uniban {	^local unbanlist	^local p $0	stack push on 367	stack push on 368        ^on ^367 * {		bless		if (comatch($2 $p)) 			{ push unbanlist $2 }	}        ^on ^368 * {		bless		stack pop on 367		stack pop on 368		deban_mode $unbanlist	}        ^mode ${[$1]?[$1]:C} +b	wait}# remove all bans that contain a literal text substringalias nban {	local unbanlist	local p $0	stack push on 367	stack push on 368        ^on ^367 * {		bless		if (rmatch($2 *$p*))			{ push unbanlist $2 }	}	^on ^368 * {		bless		stack pop on 367		stack pop on 368		deban_mode $unbanlist	}        ^mode ${[$1]?[$1]:C} +b	wait}#hop'93

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?