-/* cmd_neonserv_opall.c - NeonServ v5.3
+/* cmd_neonserv_opall.c - NeonServ v5.6
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
CMD_BIND(neonserv_cmd_opall) {
if(!argc || strcmp(argv[0], "FORCE")) {
- reply(getTextBot(), user, "NS_OPALL_SECURITY", chan->name);
+ reply(textclient, user, "NS_OPALL_SECURITY", chan->name);
return;
}
struct neonserv_cmd_opall_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;
if(argc > 1) {
cache->nickmask = strdup(argv[1]);
} else
cache->nickmask = NULL;
- get_userlist_if_invisible(chan, neonserv_cmd_opall_userlist_lookup, cache);
+ get_userlist_if_invisible(chan, module_id, neonserv_cmd_opall_userlist_lookup, cache);
}
static USERLIST_CALLBACK(neonserv_cmd_opall_userlist_lookup) {