diff options
author | TingPing <tngpng@gmail.com> | 2013-05-03 09:19:01 -0700 |
---|---|---|
committer | TingPing <tngpng@gmail.com> | 2013-05-03 09:19:01 -0700 |
commit | 7243f5bc2cc5eed9d042c7d5248309b7f02ca166 (patch) | |
tree | 677c2f6c6139dbf9d61c9c45bb2b1a12bc0cfab3 /src/common/proto-irc.c | |
parent | 414ab39db5bc6f1d40c8df5ec2ab4c750d73a59c (diff) | |
parent | 863ff811e6275ad9177c5d55515e76fe1e802686 (diff) |
Merge pull request #565 from bviktor/nickservtype
Make NickServ registration configurable per-network
Diffstat (limited to 'src/common/proto-irc.c')
-rw-r--r-- | src/common/proto-irc.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/common/proto-irc.c b/src/common/proto-irc.c index 27c3cb8e..984f7f20 100644 --- a/src/common/proto-irc.c +++ b/src/common/proto-irc.c @@ -80,14 +80,21 @@ irc_nickserv (server *serv, char *cmd, char *arg1, char *arg2, char *arg3) break; case 4: /* why couldn't QuakeNet implement one of the existing ones? */ - tcp_sendf (serv, "AUTH %s%s%s\r\n", cmd, arg1, arg2, arg3); + tcp_sendf (serv, "AUTH %s %s\r\n", arg1, arg2); } } static void irc_ns_identify (server *serv, char *pass) { - irc_nickserv (serv, "IDENTIFY", pass, "", ""); + if (serv->nickservtype == 4) /* QuakeNet needs to do everything in its own ways... */ + { + irc_nickserv (serv, "", serv->nick, pass, ""); + } + else + { + irc_nickserv (serv, "IDENTIFY", pass, "", ""); + } } static void |