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:
parent
5ee0f1c205
commit
3972fc49ed
5 changed files with 117 additions and 64 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue