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
/
NeonServ.mod
/
event_neonserv_topic.c
diff --git
a/src/modules/NeonServ.mod/event_neonserv_topic.c
b/src/modules/NeonServ.mod/event_neonserv_topic.c
index 577e0a349d3a45beb2fe6fafa7a8f0d2b882eaa2..3958f8308c69e71a39dd0eea09cdac7d02cbd975 100644
(file)
--- a/
src/modules/NeonServ.mod/event_neonserv_topic.c
+++ b/
src/modules/NeonServ.mod/event_neonserv_topic.c
@@
-1,4
+1,4
@@
-/* event_neonserv_topic.c - NeonServ v5.
3
+/* event_neonserv_topic.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
@@
-34,14
+34,14
@@
static void neonserv_event_topic(struct UserNode *user, struct ChanNode *chan, c
if(!(user->flags & USERFLAG_ISAUTHED)) {
struct neonserv_event_topic_cache *cache = malloc(sizeof(*cache));
if (!cache) {
if(!(user->flags & USERFLAG_ISAUTHED)) {
struct neonserv_event_topic_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;
cache->user = user;
cache->chan = chan;
cache->new_topic = strdup(new_topic);
return;
}
cache->client = client;
cache->user = user;
cache->chan = chan;
cache->new_topic = strdup(new_topic);
- get_userauth(user, neonserv_event_topic_nick_lookup, cache);
+ get_userauth(user,
module_id,
neonserv_event_topic_nick_lookup, cache);
} else
neonserv_event_topic_async1(client, user, chan, new_topic);
}
} else
neonserv_event_topic_async1(client, user, chan, new_topic);
}