X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmodules%2FNeonServ.mod%2Fcmd_neonserv_dehalfop.c;h=28821801233c98525db932cb0508e34c0f7dd15f;hb=ee39770362f69ced5b52104b622582e882af0b77;hp=1523c74fd7ae6f662280767d7642ff2ffb95ce96;hpb=689da1db7e2517c187ce76c6c553e20d630a7f36;p=NeonServV5.git diff --git a/src/modules/NeonServ.mod/cmd_neonserv_dehalfop.c b/src/modules/NeonServ.mod/cmd_neonserv_dehalfop.c index 1523c74..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.4 +/* 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*));