mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-19 18:13:41 -05:00
Comment on the hacky commands
This commit is contained in:
parent
7195a086b3
commit
ee6ab04009
1 changed files with 1 additions and 0 deletions
|
@ -103,6 +103,7 @@ func (h *HiClient) SendMessage(
|
|||
_, err := h.SetState(ctx, roomID, event.Type{Type: parts[1], Class: event.StateEventType}, parts[2], content)
|
||||
return nil, err
|
||||
}
|
||||
// This is hacked in and to be removed later.
|
||||
for _, state := range []string{"/invite ", "/ban ", "/kick "} {
|
||||
if strings.HasPrefix(text, state) {
|
||||
text = strings.TrimPrefix(text, state)
|
||||
|
|
Loading…
Add table
Reference in a new issue