summary refs log tree commit diff stats
path: root/src/common/proto-irc.c
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-07-04 18:08:56 -0400
committerTingPing <tngpng@gmail.com>2013-07-04 18:08:56 -0400
commit1544a5d6cb4e44af23c0c2354d0fc6cb1b404460 (patch)
treeed7eb64386f37f108245b0d5b005140f89ff9583 /src/common/proto-irc.c
parent3284502645f622409fa9e373f9fd0b1c41417e9c (diff)
Default to nickserv when using /ghost or /id commands
Diffstat (limited to 'src/common/proto-irc.c')
-rw-r--r--src/common/proto-irc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/proto-irc.c b/src/common/proto-irc.c
index 29102afc..bea9f6f7 100644
--- a/src/common/proto-irc.c
+++ b/src/common/proto-irc.c
@@ -74,6 +74,9 @@ irc_nickserv (server *serv, char *cmd, char *arg1, char *arg2, char *arg3)
 		case LOGIN_NICKSERV:
 			tcp_sendf (serv, "NICKSERV %s %s%s%s\r\n", cmd, arg1, arg2, arg3);
 			break;
+		default: /* This may not work but at least it tries something when using /id or /ghost cmd */
+			tcp_sendf (serv, "NICKSERV %s %s%s%s\r\n", cmd, arg1, arg2, arg3);
+			break;
 #if 0
 		case LOGIN_MSG_NS:
 			tcp_sendf (serv, "PRIVMSG NS :%s %s%s%s\r\n", cmd, arg1, arg2, arg3);