mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-04-22 19:50:33 +03:00
ignore arguments to /shrug
This commit is contained in:
parent
e72af3ad8e
commit
08971ccd14
@ -278,13 +278,7 @@ func InitCommands(c *Commands) {
|
||||
c.Add(Command{
|
||||
Prefix: "/shrug",
|
||||
Handler: func(room *Room, msg message.CommandMsg) error {
|
||||
var me string
|
||||
args := msg.Args()
|
||||
if len(args) == 0 {
|
||||
me = `¯\_(ツ)_/¯`
|
||||
}
|
||||
|
||||
room.Send(message.NewEmoteMsg(me, msg.From()))
|
||||
room.Send(message.NewEmoteMsg(`¯\_(ツ)_/¯`, msg.From()))
|
||||
return nil
|
||||
},
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user