X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmodules%2FNeonServ.mod%2Fcmd_neonserv_halfop.c;h=8c8338981369e380def2a1b8d222264074d7e787;hb=caa3238cc43909d4d3a27ff95b77f9ab23f85baf;hp=7cd557c05c1a94df25d0c9e9eb7675631cbb23d6;hpb=689da1db7e2517c187ce76c6c553e20d630a7f36;p=NeonServV5.git diff --git a/src/modules/NeonServ.mod/cmd_neonserv_halfop.c b/src/modules/NeonServ.mod/cmd_neonserv_halfop.c index 7cd557c..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.4 +/* 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,11 +33,11 @@ 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));