projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed crash in cmd_neonserv_mode.c
[NeonServV5.git]
/
src
/
modules
/
NeonServ.mod
/
event_neonserv_kick.c
diff --git
a/src/modules/NeonServ.mod/event_neonserv_kick.c
b/src/modules/NeonServ.mod/event_neonserv_kick.c
index 24a3b695c48d89a817676c1ccede793a6d6c8fea..2daf63aae33b504b6b8e704faec3d19147098d9e 100644
(file)
--- a/
src/modules/NeonServ.mod/event_neonserv_kick.c
+++ b/
src/modules/NeonServ.mod/event_neonserv_kick.c
@@
-1,4
+1,4
@@
-/* event_neonserv_kick.c - NeonServ v5.
5
+/* event_neonserv_kick.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
@@
-58,7
+58,7
@@
static void neonserv_event_kick(struct UserNode *user, struct ChanUser *target,
if(!(chan->flags & CHANFLAG_CHAN_REGISTERED)) return;
struct neonserv_event_kick_cache *cache = malloc(sizeof(*cache));
if (!cache) {
if(!(chan->flags & CHANFLAG_CHAN_REGISTERED)) return;
struct neonserv_event_kick_cache *cache = malloc(sizeof(*cache));
if (!cache) {
- p
error("malloc() failed"
);
+ p
rintf_log("neonserv", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__
);
return;
}
cache->client = client;
return;
}
cache->client = client;