3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-22 11:59:40 +01:00

modes: Let users give other users privs in channels. Silly bug.

This commit is contained in:
Daniel Oaks 2017-06-30 00:59:51 +10:00
parent 279ac928ae
commit 6ffc96d495

View File

@ -446,6 +446,12 @@ func ParseChannelModeChanges(params ...string) (ModeChanges, map[rune]bool) {
break
}
}
for _, supportedMode := range ChannelPrivModes {
if rune(supportedMode) == mode {
isKnown = true
break
}
}
if !isKnown {
unknown[mode] = true
continue