/*
* ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001-2013 Alexander Barton (alex@barton.de) and Contributors.
+ * Copyright (c)2001-2015 Alexander Barton (alex@barton.de) and Contributors.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* IRC channel commands
*/
-#include "imp.h"
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include "defines.h"
#include "conn.h"
#include "channel.h"
#include "conn-func.h"
#include "irc-write.h"
#include "conf.h"
-#include "exp.h"
#include "irc-channel.h"
/**
while (chan) {
Channel_Part(target, Client, chan,
- Req->argc > 1 ? Req->argv[1] : Client_ID(target));
+ Req->argc > 1 ? Req->argv[1] : "");
chan = strtok(NULL, ",");
}
/* Gotcha! */
if (!Channel_HasMode(chan, 's')
|| Channel_IsMemberOf(chan, from)
- || (!Conf_MorePrivacy
- && Client_HasMode(Client, 'o')
- && Client_Conn(Client) > NONE))
+ || Client_HasMode(from, 'o'))
{
if ((Conf_MaxListSize > 0)
&& IRC_CheckListTooBig(from, count,