+#include "cmd_neonserv.h"
+
/*
* no parameters
*/
struct UserNode *user;
};
-static CMD_BIND(neonserv_cmd_peek) {
+CMD_BIND(neonserv_cmd_peek) {
struct neonserv_cmd_peek_cache *cache = malloc(sizeof(*cache));
if (!cache) {
perror("malloc() failed");
reply(textclient, user, "NS_PEEK_HEADER", chan->name);
reply(textclient, user, "NS_PEEK_TOPIC", chan->topic);
char tmpStr[MAXLEN];
- reply(textclient, user, "NS_PEEK_MODES", getModeString(chan->modes, tmpStr));
+ getModeString(chan->modes, tmpStr);
+ reply(textclient, user, "NS_PEEK_MODES", tmpStr);
struct ChanUser *chanuser;
int op_count = 0, voice_count = 0, normal_count = 0, invi_count = 0;
for(chanuser = getChannelUsers(chan, NULL); chanuser; chanuser = getChannelUsers(chan, chanuser)) {