forked from External/ergo
adjust ping message
This commit is contained in:
parent
52ffc77d8d
commit
b6d8f62674
2 changed files with 2 additions and 2 deletions
|
|
@ -643,7 +643,7 @@ func NewWhoCommand(args []string) (editableCommand, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (msg *WhoCommand) String() string {
|
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 {
|
type OperCommand struct {
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,7 @@ func RplTopicMsg(source Identifier, channel *Channel) string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func RplPing(server *Server, target Identifier) 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 {
|
func RplPong(server *Server, client *Client) string {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue