X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmodules%2FNeonServ.mod%2Fcmd_neonserv_dehalfop.c;h=28821801233c98525db932cb0508e34c0f7dd15f;hb=HEAD;hp=549e53c1a9e8dda839f30c8135b94aa7c5792e71;hpb=902ebfe5551be2daa3edf8141bcee91f62c0a5e0;p=NeonServV5.git diff --git a/src/modules/NeonServ.mod/cmd_neonserv_dehalfop.c b/src/modules/NeonServ.mod/cmd_neonserv_dehalfop.c index 549e53c..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*));