summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-03-04 16:30:36 -0500
committerTingPing <tingping@tingping.se>2013-03-04 16:30:36 -0500
commitab99bf75179b5d7635c2bf919ab506496348eeae (patch)
tree6fe6d467b5b2296c6614e674e19215d082d9ea3e /src/common
parentd1c36f170b4596d92a7d40631c997dc6688b6a9b (diff)
Use key on new servers
Diffstat (limited to 'src/common')
-rw-r--r--src/common/outbound.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/outbound.c b/src/common/outbound.c
index 88cafa85..cc023889 100644
--- a/src/common/outbound.c
+++ b/src/common/outbound.c
@@ -3166,6 +3166,8 @@ cmd_server (struct session *sess, char *tbuf, char *word[], char *word_eol[])
 	{
 		sess->willjoinchannel[0] = '#';
 		safe_strcpy ((sess->willjoinchannel + 1), channel, (CHANLEN - 1));
+		if (key)
+			safe_strcpy (sess->channelkey, key, 64);
 	}
 
 	/* support +7000 style ports like mIRC */