Merge pull request #1106 from slingamn/easteregg

fix #1078
This commit is contained in:
Shivaram Lingamneni 2020-06-02 07:33:55 -07:00 committed by GitHub
commit a45e15b520
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 0 deletions

View File

@ -282,6 +282,9 @@ func init() {
handler: setnameHandler,
minParams: 1,
},
"SUMMON": {
handler: summonHandler,
},
"TAGMSG": {
handler: messageHandler,
minParams: 1,
@ -324,6 +327,9 @@ func init() {
handler: userhostHandler,
minParams: 1,
},
"USERS": {
handler: usersHandler,
},
"VERSION": {
handler: versionHandler,
minParams: 0,

View File

@ -2417,6 +2417,12 @@ func setnameHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *R
return false
}
// SUMMON [parameters]
func summonHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *ResponseBuffer) bool {
rb.Add(nil, server.name, ERR_SUMMONDISABLED, client.Nick(), client.t("SUMMON has been disabled"))
return false
}
// TIME
func timeHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *ResponseBuffer) bool {
rb.Add(nil, server.name, RPL_TIME, client.nick, server.name, time.Now().UTC().Format(time.RFC1123))
@ -2576,6 +2582,12 @@ func userhostHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *
return false
}
// USERS [parameters]
func usersHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *ResponseBuffer) bool {
rb.Add(nil, server.name, ERR_USERSDISABLED, client.Nick(), client.t("USERS has been disabled"))
return false
}
// VERSION
func versionHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *ResponseBuffer) bool {
rb.Add(nil, server.name, RPL_VERSION, client.nick, Ver, server.name)

View File

@ -432,6 +432,11 @@ The SCENE command is used to send a scene notification to the given target.`,
text: `SETNAME <realname>
The SETNAME command updates the realname to be the newly-given one.`,
},
"summon": {
text: `SUMMON [parameters]
The SUMMON command is not implemented.`,
},
"tagmsg": {
text: `@+client-only-tags TAGMSG <target>{,<target>}
@ -492,6 +497,11 @@ For example:
Used in connection registration, sets your username and realname to the given
values (though your username may also be looked up with Ident).`,
},
"users": {
text: `USERS [parameters]
The USERS command is not implemented.`,
},
"userhost": {
text: `USERHOST <nickname>{ <nickname>}