mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-25 21:39:25 +01:00
adjust ping message
This commit is contained in:
parent
52ffc77d8d
commit
b6d8f62674
@ -643,7 +643,7 @@ func NewWhoCommand(args []string) (editableCommand, error) {
|
||||
}
|
||||
|
||||
func (msg *WhoCommand) String() string {
|
||||
return fmt.Sprintf("WHO(mask=%s, operatorOnly=%s)", msg.mask, msg.operatorOnly)
|
||||
return fmt.Sprintf("WHO(mask=%s, operatorOnly=%t)", msg.mask, msg.operatorOnly)
|
||||
}
|
||||
|
||||
type OperCommand struct {
|
||||
|
@ -98,7 +98,7 @@ func RplTopicMsg(source Identifier, channel *Channel) string {
|
||||
}
|
||||
|
||||
func RplPing(server *Server, target Identifier) string {
|
||||
return NewStringReply(server, PING, target.Nick())
|
||||
return NewStringReply(server, PING, ":%s", target.Nick())
|
||||
}
|
||||
|
||||
func RplPong(server *Server, client *Client) string {
|
||||
|
Loading…
Reference in New Issue
Block a user