mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-23 03:02:48 +01:00
no-op fix to SETNAME workaround
This commit is contained in:
parent
9c4b086113
commit
b57820150e
@ -2737,7 +2737,7 @@ func sceneHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *Res
|
|||||||
// SETNAME <realname>
|
// SETNAME <realname>
|
||||||
func setnameHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *ResponseBuffer) bool {
|
func setnameHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *ResponseBuffer) bool {
|
||||||
realname := msg.Params[0]
|
realname := msg.Params[0]
|
||||||
if len(msg.Params) != 0 {
|
if len(msg.Params) != 1 {
|
||||||
// workaround for clients that turn unknown commands into raw IRC lines,
|
// workaround for clients that turn unknown commands into raw IRC lines,
|
||||||
// so you can do `/setname Jane Doe` in the client and get the expected result
|
// so you can do `/setname Jane Doe` in the client and get the expected result
|
||||||
realname = strings.Join(msg.Params, " ")
|
realname = strings.Join(msg.Params, " ")
|
||||||
|
Loading…
Reference in New Issue
Block a user