fix
This commit is contained in:
parent
238ce08337
commit
aca6a0dfa4
@ -89,7 +89,11 @@ func (self simpleModEvent) Reason() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (self simpleModEvent) Target() string {
|
func (self simpleModEvent) Target() string {
|
||||||
return strings.Split(string(self), " ")[1]
|
parts := strings.Split(string(self), " ")
|
||||||
|
if len(parts) > 1 {
|
||||||
|
return parts[1]
|
||||||
|
}
|
||||||
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self simpleModEvent) Scope() string {
|
func (self simpleModEvent) Scope() string {
|
||||||
|
Reference in New Issue
Block a user