-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathantispam.c
38 lines (32 loc) · 912 Bytes
/
antispam.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* Servicio Anti-Spam, botshispanobdd
*
* (C) 2002 David Martín Díaz <equis@fuckmicrosoft.com>
*
* Este programa es software libre. Puede redistribuirlo y/o modificarlo
* bajo los términos de la Licencia Pública General de GNU según es publicada
* por la Free Software Foundation.
*/
#include "services.h"
#include "pseudo.h"
static void gline_spam(const char *user, char *motivo);
void antispamc(const char *source,const char *chan, char *buf)
{
if (!strstr(buf, "5757")) {
return;
} else {
privmsg(s_AntiSpam, chan, "Ey! %s dijo 5757!!", source);
}
}
void antispam(const char *source, char *buf)
{
if (strstr(buf, "\1")) {
gline_spam(source, "Ataques a canales");
}
return;
}
static void gline_spam(const char *user, char *motivo)
{
User *u2;
u2 = finduser(user);
privmsg(s_AntiSpam, user, "Tu ereh mal0, ahora mismo te glineo a *@%s, y te digo que %s",u2->host, motivo);
}