X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmodules%2FNeonServ.mod%2Fcmd_neonserv_dehalfop.c;h=28821801233c98525db932cb0508e34c0f7dd15f;hb=ee39770362f69ced5b52104b622582e882af0b77;hp=f995e0f767e31fa2cd19f730768a806727f7070e;hpb=706e48b1e666054030c491d864f740071e390038;p=NeonServV5.git diff --git a/src/modules/NeonServ.mod/cmd_neonserv_dehalfop.c b/src/modules/NeonServ.mod/cmd_neonserv_dehalfop.c index f995e0f..2882180 100644 --- a/src/modules/NeonServ.mod/cmd_neonserv_dehalfop.c +++ b/src/modules/NeonServ.mod/cmd_neonserv_dehalfop.c @@ -1,4 +1,4 @@ -/* cmd_neonserv_dehalfop.c - NeonServ v5.3 +/* cmd_neonserv_dehalfop.c - NeonServ v5.6 * Copyright (C) 2011-2012 Philipp Kreil (pk910) * * This program is free software: you can redistribute it and/or modify @@ -34,11 +34,11 @@ struct neonserv_cmd_dehalfop_cache { CMD_BIND(neonserv_cmd_dehalfop) { struct neonserv_cmd_dehalfop_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; cache->argv = calloc(argc, sizeof(char*)); @@ -47,7 +47,7 @@ CMD_BIND(neonserv_cmd_dehalfop) { cache->argv[i] = strdup(argv[i]); } cache->argc = argc; - get_userlist(chan, neonserv_cmd_dehalfop_userlist_lookup, cache); + get_userlist(chan, module_id, neonserv_cmd_dehalfop_userlist_lookup, cache); } static USERLIST_CALLBACK(neonserv_cmd_dehalfop_userlist_lookup) {