- if ((unsigned)chan->bans.size() > (unsigned)maxbans)
+ if (!IS_LOCAL(user) && ((unsigned)chan->bans.size() > (unsigned)maxbans))
{
{
- user->WriteServ("478 %s %s :Channel ban list for %s is full (maximum entries for this channel is %ld)",user->nick, chan->name,chan->name,maxbans);
+ user->WriteServ("478 %s %s :Channel ban list for %s is full (maximum entries for this channel is %ld)",user->nick.c_str(), chan->name.c_str(), chan->name.c_str(), maxbans);