projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed crash bug in cmd_NeonServ.mod/cmd_neonserv_set.c
[NeonServV5.git]
/
src
/
modules
/
NeonServ.mod
/
cmd_neonserv_voiceall.c
diff --git
a/src/modules/NeonServ.mod/cmd_neonserv_voiceall.c
b/src/modules/NeonServ.mod/cmd_neonserv_voiceall.c
index 29b4525f590f7de4ba5aaf5406b2b66945f2aa73..a1c2325e7103e853c5a0951a887fad7e9635f648 100644
(file)
--- a/
src/modules/NeonServ.mod/cmd_neonserv_voiceall.c
+++ b/
src/modules/NeonServ.mod/cmd_neonserv_voiceall.c
@@
-1,4
+1,4
@@
-/* cmd_neonserv_voiceall.c - NeonServ v5.
4
+/* cmd_neonserv_voiceall.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
@@
-33,11
+33,11
@@
struct neonserv_cmd_voiceall_cache {
CMD_BIND(neonserv_cmd_voiceall) {
struct neonserv_cmd_voiceall_cache *cache = malloc(sizeof(*cache));
if (!cache) {
CMD_BIND(neonserv_cmd_voiceall) {
struct neonserv_cmd_voiceall_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;
- cache->textclient =
getTextBot()
;
+ cache->textclient =
textclient
;
cache->user = user;
cache->event = event;
if(argc > 0) {
cache->user = user;
cache->event = event;
if(argc > 0) {