}
else
{
- WriteServ(src->fd,"482 %s %s :You must be at least a half-operator",src->nick, Ptr->name);
+ WriteServ(src->fd,"482 %s %s :You must be at least a half-operator to change modes on this channel",src->nick, Ptr->name);
}
return;
}
if (status < STATUS_HOP)
{
- WriteServ(user->fd,"482 %s %s :You must be at least a half-operator",user->nick, chan->name);
+ WriteServ(user->fd,"482 %s %s :You must be at least a half-operator to change modes on this channel",user->nick, chan->name);
return 0;
}
else
}
if (status < STATUS_HOP)
{
- WriteServ(user->fd,"482 %s %s :You must be at least a half-operator",user->nick, chan->name);
+ WriteServ(user->fd,"482 %s %s :You must be at least a half-operator to change modes on this channel",user->nick, chan->name);
return 0;
}
else
if ((cstatus(user,Ptr) < STATUS_HOP) && (Ptr))
{
- WriteServ(user->fd,"482 %s %s :You must be at least a half-operator",user->nick, Ptr->name);
+ WriteServ(user->fd,"482 %s %s :You must be at least a half-operator to change modes on this channel",user->nick, Ptr->name);
return;
}
{
if (cstatus(user,c) < STATUS_HOP)
{
- WriteServ(user->fd,"482 %s %s :You must be at least a half-operator",user->nick, c->name);
+ WriteServ(user->fd,"482 %s %s :You must be at least a half-operator to change modes on this channel",user->nick, c->name);
return;
}
{
if ((Ptr->topiclock) && (cstatus(user,Ptr)<STATUS_HOP))
{
- WriteServ(user->fd,"482 %s %s :You must be at least a half-operator", user->nick, Ptr->name);
+ WriteServ(user->fd,"482 %s %s :You must be at least a half-operator to change modes on this channel", user->nick, Ptr->name);
return;
}
}
cmd_found = 0;
+
+ log(DEBUG,"Second processing point");
if (strlen(command)>MAXCOMMAND)
{
{
if (!strcmp(command, cmdlist[i].command))
{
+ log(DEBUG,"Found matching command");
+
if (parameters)
{
if (strcmp(parameters,""))
if (user)
{
+ log(DEBUG,"Processing command");
+
/* activity resets the ping pending timer */
user->nping = time(NULL) + 120;
if ((items) < cmdlist[i].min_params)
}
log(DEBUG,"InspIRCd: processing: %s %s",user->nick,cmd);
tidystring(cmd);
- if (user)
+ if ((user) && (cmd))
{
process_command(user,cmd);
}