X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmodules%2FNeonServ.mod%2Fcmd_neonserv_voiceall.c;h=a1c2325e7103e853c5a0951a887fad7e9635f648;hb=ee39770362f69ced5b52104b622582e882af0b77;hp=779110ccdf7278e971b4d05d19b5edc0fa267a66;hpb=706e48b1e666054030c491d864f740071e390038;p=NeonServV5.git diff --git a/src/modules/NeonServ.mod/cmd_neonserv_voiceall.c b/src/modules/NeonServ.mod/cmd_neonserv_voiceall.c index 779110c..a1c2325 100644 --- 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.3 +/* 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 @@ -33,18 +33,18 @@ struct neonserv_cmd_voiceall_cache { CMD_BIND(neonserv_cmd_voiceall) { struct neonserv_cmd_voiceall_cache *cache = malloc(sizeof(*cache)); if (!cache) { - perror("malloc() failed"); + printf_log("neonserv", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__); return; } cache->client = client; - cache->textclient = getTextBot(); + cache->textclient = textclient; cache->user = user; cache->event = event; if(argc > 0) { cache->nickmask = strdup(argv[0]); } else cache->nickmask = NULL; - get_userlist_if_invisible(chan, neonserv_cmd_voiceall_userlist_lookup, cache); + get_userlist_if_invisible(chan, module_id, neonserv_cmd_voiceall_userlist_lookup, cache); } static USERLIST_CALLBACK(neonserv_cmd_voiceall_userlist_lookup) {