Skip to content

Commit c8fe83b

Browse files
committed
handler: ignore interactions without leading /
1 parent f83a90f commit c8fe83b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

handler/mux.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ func (r *Mux) OnEvent(event bot.Event) {
6060
path = i.Data.CustomID
6161
}
6262

63+
if !strings.HasPrefix(path, "/") {
64+
return
65+
}
66+
6367
var ctx context.Context
6468
if r.defaultContext != nil {
6569
ctx = r.defaultContext()

0 commit comments

Comments
 (0)