mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-10 22:19:31 +01:00
commit
a45e15b520
@ -282,6 +282,9 @@ func init() {
|
|||||||
handler: setnameHandler,
|
handler: setnameHandler,
|
||||||
minParams: 1,
|
minParams: 1,
|
||||||
},
|
},
|
||||||
|
"SUMMON": {
|
||||||
|
handler: summonHandler,
|
||||||
|
},
|
||||||
"TAGMSG": {
|
"TAGMSG": {
|
||||||
handler: messageHandler,
|
handler: messageHandler,
|
||||||
minParams: 1,
|
minParams: 1,
|
||||||
@ -324,6 +327,9 @@ func init() {
|
|||||||
handler: userhostHandler,
|
handler: userhostHandler,
|
||||||
minParams: 1,
|
minParams: 1,
|
||||||
},
|
},
|
||||||
|
"USERS": {
|
||||||
|
handler: usersHandler,
|
||||||
|
},
|
||||||
"VERSION": {
|
"VERSION": {
|
||||||
handler: versionHandler,
|
handler: versionHandler,
|
||||||
minParams: 0,
|
minParams: 0,
|
||||||
|
@ -2417,6 +2417,12 @@ func setnameHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *R
|
|||||||
return false
|
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
|
// TIME
|
||||||
func timeHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *ResponseBuffer) bool {
|
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))
|
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
|
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
|
// VERSION
|
||||||
func versionHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *ResponseBuffer) bool {
|
func versionHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *ResponseBuffer) bool {
|
||||||
rb.Add(nil, server.name, RPL_VERSION, client.nick, Ver, server.name)
|
rb.Add(nil, server.name, RPL_VERSION, client.nick, Ver, server.name)
|
||||||
|
10
irc/help.go
10
irc/help.go
@ -432,6 +432,11 @@ The SCENE command is used to send a scene notification to the given target.`,
|
|||||||
text: `SETNAME <realname>
|
text: `SETNAME <realname>
|
||||||
|
|
||||||
The SETNAME command updates the realname to be the newly-given one.`,
|
The SETNAME command updates the realname to be the newly-given one.`,
|
||||||
|
},
|
||||||
|
"summon": {
|
||||||
|
text: `SUMMON [parameters]
|
||||||
|
|
||||||
|
The SUMMON command is not implemented.`,
|
||||||
},
|
},
|
||||||
"tagmsg": {
|
"tagmsg": {
|
||||||
text: `@+client-only-tags TAGMSG <target>{,<target>}
|
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
|
Used in connection registration, sets your username and realname to the given
|
||||||
values (though your username may also be looked up with Ident).`,
|
values (though your username may also be looked up with Ident).`,
|
||||||
|
},
|
||||||
|
"users": {
|
||||||
|
text: `USERS [parameters]
|
||||||
|
|
||||||
|
The USERS command is not implemented.`,
|
||||||
},
|
},
|
||||||
"userhost": {
|
"userhost": {
|
||||||
text: `USERHOST <nickname>{ <nickname>}
|
text: `USERHOST <nickname>{ <nickname>}
|
||||||
|
Loading…
Reference in New Issue
Block a user