forked from External/ergo
Merge branch 'realname_again'
This commit is contained in:
commit
a99c893f9b
5 changed files with 59 additions and 9 deletions
|
|
@ -2565,6 +2565,11 @@ func sceneHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *Res
|
|||
// SETNAME <realname>
|
||||
func setnameHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *ResponseBuffer) bool {
|
||||
realname := msg.Params[0]
|
||||
if realname == "" {
|
||||
rb.Add(nil, server.name, "FAIL", "SETNAME", "INVALID_REALNAME", client.t("Realname is not valid"))
|
||||
return false
|
||||
}
|
||||
|
||||
client.SetRealname(realname)
|
||||
details := client.Details()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue