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