Fix a bug where we were not sending a channel mode change

This commit is contained in:
Les De Ridder 2017-05-24 00:12:17 +02:00
parent fd8a9aafe7
commit 3be4710c32
No known key found for this signature in database
GPG Key ID: 5EC132DFA85DB372
1 changed files with 2 additions and 2 deletions

View File

@ -1083,8 +1083,8 @@ Lforeach:
case 's':
case 't':
bool success;
if(add) channel.setMode(mode);
else channel.unsetMode(mode);
if(add) success = channel.setMode(mode);
else success = channel.unsetMode(mode);
if(success)
{
processedModes ~= mode;