[IRCServices] preventing global akicks

Jonathan George net at lite.net
Sat Oct 2 16:19:25 PDT 1999


You could always do something like:

(the functions should be fairly clear, although I'll bet the names aren't
right :)

if (match_wild(mask, "asdf at jkl;")) {
	/* really broad mask, eh? */
	return;
}

|> if (!stricmp(mask, "*!*@*") || !stricmp(mask, "*@*") ||
|> !stricmp(mask,"*@**") || !stricmp(mask,"*@*.*")) {
|>                 send_msg(s_ChanServ, u->nick, "Your akick mask is to
|> broad.");
|>                 log("%s: %s tried to akick add %s on %s!", s_ChanServ,
|> u->nick,
|>                 mask, chan);
|>                 wallops(s_ChanServ, "%s tried to akick add %s on %s!",
|> u->nick,
|>                 mask, chan);
|>                 return;
|>         }

------------------------------------------
Jonathan George   (net at lite.net)
Terra World, Inc. (support at terraworld.net)
Programmer        (outlaw at terraworld.net)
Technician        (root at lite.net)

"Never execute code written on a Friday or
a Monday."

---------------------------------------------------------------
To unsubscribe, send email to majordomo at ender.shadowfire.org
with "unsubscribe ircservices" in the body, without the quotes.