Fix destruction of text channels being counted as creation of text channels

This commit is contained in:
Tibo 2016-07-25 23:33:34 +02:00 committed by GitHub
parent bbf2789704
commit 6ee099023f

View File

@ -98,7 +98,7 @@ namespace NadekoBot
if (e.Channel.IsPrivate) if (e.Channel.IsPrivate)
return; return;
if (e.Channel.Type == ChannelType.Text) if (e.Channel.Type == ChannelType.Text)
VoiceChannelsCount++; TextChannelsCount--;
else if (e.Channel.Type == ChannelType.Voice) else if (e.Channel.Type == ChannelType.Voice)
VoiceChannelsCount--; VoiceChannelsCount--;
} }
@ -235,4 +235,4 @@ namespace NadekoBot
#endif #endif
} }
} }
} }