[IRCServices] AKILL *@* Lame IRCops Protection.
Harhalakis Stefanos
v13 at it.teithe.gr
Fri Oct 1 14:06:00 PDT 1999
you can use some checks like: match_wild(mask,"@"),
match_wild(mask,"@.com")... so that someone canot enter e mask like
**...**@**...** or *@*com. Any mask like *@* will match @.
(Use your imagination. "@..." is a nice trick to prevent "*@*.*.*.*"...)
<<V13>>
On Fri, 1 Oct 1999, Jozenobio de Melo Brasil wrote:
> Hi All,
>
> I has maked a good protection for services if lame ircops try
> akill *@*... this protection can be used on akick too.
>
> Thanks all... :)
>
> /* Lame IRCops Protection by Jozeph'99 */
> if (s) {
> s++;
> i = 0;
> while (*s) {
> if (*s != '*' && *s != '.')
> i++;
> s++;
> }
> if (i<4) {
> wallops(s_OperServ, "%s tried to akill add %s!",
> u->nick, mask);
> return;
> }
> }
> /* End Lame IRCops Protection */
>
>
> --
> --------------------------------------------------------------------
> \|/ --- \|/ | Jozenóbio de Melo Brasil.
> @~/ Oo \~@ | jozeph at globalmedia.com.br
> /_( \__/ )_\ | http://www.globalmedia.com.br/jozeph
> \__U_/ | " Onde a maioria vive com a bondade,
> | a maldade da minoria tende sempre a desaparecer! "
> --------------------------------------------------------------------
> The box said "Windows 95, Windows NT 4.0, or better", so I installed
> Linux.
>
> ---------------------------------------------------------------
> To unsubscribe, send email to majordomo at ender.shadowfire.org
> with "unsubscribe ircservices" in the body, without the quotes.
>
---------------------------------------------------------------
To unsubscribe, send email to majordomo at ender.shadowfire.org
with "unsubscribe ircservices" in the body, without the quotes.