1
0
Fork 0
forked from External/ergo

privileges: Add founder/admin/halfop (qah), remove owner (O)

channel owner is from 2812 and unused in the real world
This commit is contained in:
Daniel Oaks 2016-04-14 09:35:36 +10:00
parent 5ee0f1c205
commit 3972fc49ed
5 changed files with 117 additions and 64 deletions

View file

@ -545,8 +545,9 @@ func ParseChannelModeCommand(channel Name, args []string) (Command, error) {
op: op,
}
switch change.mode {
// TODO(dan): separate this into the type A/B/C/D args and use those lists here
case Key, BanMask, ExceptMask, InviteMask, UserLimit,
ChannelOperator, ChannelCreator, Voice:
ChannelOperator, ChannelFounder, ChannelAdmin, Halfop, Voice:
if len(args) > skipArgs {
change.arg = args[skipArgs]
skipArgs += 1