simulate PROTOCTL NAMESX

--HG--
branch : nmdc-ircfrontend
This commit is contained in:
. 2016-05-07 17:51:21 +12:00
parent d7353040f6
commit 98e8ef43ba

View File

@ -226,6 +226,9 @@ func (s *Server) handleCommand(command string, args []string) {
}
*/
case "PROTOCTL":
// we advertised support for NAMESX, if this happens the client accepted it
case "PASS":
// RFC2812 registration. Stash the password for later
if len(args) < 1 {
@ -510,6 +513,8 @@ func (s *Server) reply(code replyCode, args ...string) {
switch code {
case rplWelcome:
s.writeClient(fmt.Sprintf(":%s 001 %s :Welcome to %s", s.name, s.upstreamLauncher.Self.Nick, s.name))
s.writeClient(fmt.Sprintf(":%s 005 %s NAMESX :are supported by this server", s.name, s.upstreamLauncher.Self.Nick))
case rplJoin:
s.writeClient(fmt.Sprintf(":%s JOIN %s", args[0], args[1]))
case rplPart: