fug
This commit is contained in:
parent
cff94dc8d8
commit
f370a4ccbd
@ -84,7 +84,6 @@ func (self simpleModEvent) Action() ModAction {
|
|||||||
switch strings.Split(string(self), " ")[0] {
|
switch strings.Split(string(self), " ")[0] {
|
||||||
case "delete":
|
case "delete":
|
||||||
return ModDelete
|
return ModDelete
|
||||||
|
|
||||||
case "overchan-inet-ban":
|
case "overchan-inet-ban":
|
||||||
return ModInetBan
|
return ModInetBan
|
||||||
}
|
}
|
||||||
@ -425,7 +424,6 @@ func (mod *modEngine) Execute(ev ModEvent, pubkey string) {
|
|||||||
action := ev.Action()
|
action := ev.Action()
|
||||||
target := ev.Target()
|
target := ev.Target()
|
||||||
switch action {
|
switch action {
|
||||||
case ModDeleteAlt:
|
|
||||||
case ModDelete:
|
case ModDelete:
|
||||||
if mod.AllowDelete(pubkey, target) {
|
if mod.AllowDelete(pubkey, target) {
|
||||||
mod.Do(ev)
|
mod.Do(ev)
|
||||||
|
Reference in New Issue
Block a user