X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmodules%2FNeonServ.mod%2Fcmd_neonserv_halfop.c;h=8c8338981369e380def2a1b8d222264074d7e787;hb=b3c0421db9c607c841b8926725dfab5323872a87;hp=ba684cb9ede5b21f9169d149ba855b021d37f404;hpb=706e48b1e666054030c491d864f740071e390038;p=NeonServV5.git diff --git a/src/modules/NeonServ.mod/cmd_neonserv_halfop.c b/src/modules/NeonServ.mod/cmd_neonserv_halfop.c index ba684cb..8c83389 100644 --- a/src/modules/NeonServ.mod/cmd_neonserv_halfop.c +++ b/src/modules/NeonServ.mod/cmd_neonserv_halfop.c @@ -1,4 +1,4 @@ -/* cmd_neonserv_halfop.c - NeonServ v5.3 +/* cmd_neonserv_halfop.c - NeonServ v5.6 * Copyright (C) 2011-2012 Philipp Kreil (pk910) * * This program is free software: you can redistribute it and/or modify @@ -33,15 +33,15 @@ struct neonserv_cmd_halfop_cache { CMD_BIND(neonserv_cmd_halfop) { struct neonserv_cmd_halfop_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->nicks = strdup(merge_argv(argv, 0, argc)); - get_userlist_if_invisible(chan, neonserv_cmd_halfop_userlist_lookup, cache); + get_userlist_if_invisible(chan, module_id, neonserv_cmd_halfop_userlist_lookup, cache); } static USERLIST_CALLBACK(neonserv_cmd_halfop_userlist_lookup) {