projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added new multi log system
[NeonServV5.git]
/
src
/
modules
/
NeonSpam.mod
/
event_neonspam_join.c
diff --git
a/src/modules/NeonSpam.mod/event_neonspam_join.c
b/src/modules/NeonSpam.mod/event_neonspam_join.c
index 5a169f207487c0c702e3752363704a14da9750d4..f34b1a387f89917f41e3274393465cca047d33f8 100644
(file)
--- a/
src/modules/NeonSpam.mod/event_neonspam_join.c
+++ b/
src/modules/NeonSpam.mod/event_neonspam_join.c
@@
-1,4
+1,4
@@
-/* event_neonspam_join.c - NeonServ v5.
3
+/* event_neonspam_join.c - NeonServ v5.
6
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
@@
-27,7
+27,6
@@
struct neonspam_event_join_cache {
};
static void neonspam_event_join(struct ChanUser *chanuser) {
};
static void neonspam_event_join(struct ChanUser *chanuser) {
- if(chanuser->user->flags & USERFLAG_WAS_REGISTRING) return;
struct ClientSocket *client = getChannelBot(chanuser->chan, BOTID);
if(!client) return; //we can't "see" this event
if(chanuser->user == client->user) {
struct ClientSocket *client = getChannelBot(chanuser->chan, BOTID);
if(!client) return; //we can't "see" this event
if(chanuser->user == client->user) {
@@
-47,14
+46,14
@@
static void neonspam_event_join(struct ChanUser *chanuser) {
} else {
struct neonspam_event_join_cache *cache = malloc(sizeof(*cache));
if (!cache) {
} else {
struct neonspam_event_join_cache *cache = malloc(sizeof(*cache));
if (!cache) {
- p
error("malloc() failed"
);
+ p
rintf_log("neonspam", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__
);
return;
}
cache->client = client;
cache->chanuser = chanuser;
cache->settings = settings;
cache->action = result;
return;
}
cache->client = client;
cache->chanuser = chanuser;
cache->settings = settings;
cache->action = result;
- get_userauth(chanuser->user, neonspam_event_join_nick_lookup, cache);
+ get_userauth(chanuser->user,
module_id,
neonspam_event_join_nick_lookup, cache);
}
}
}
}
}
}
@@
-102,7
+101,7
@@
static void neonspam_event_join_punish(struct ClientSocket *client, struct ChanU
char banidBuf[20];
sprintf(nameBuf, "ban_%d", banid);
sprintf(banidBuf, "%d", banid);
char banidBuf[20];
sprintf(nameBuf, "ban_%d", banid);
sprintf(banidBuf, "%d", banid);
- timeq_add_name(nameBuf, duration, channel_ban_timeout, strdup(banidBuf));
+ timeq_add_name(nameBuf, duration,
module_id,
channel_ban_timeout, strdup(banidBuf));
}
case 1: //KICKBAN
if(!banmask)
}
case 1: //KICKBAN
if(!banmask)