From bcea75ae318239ad8e3af1b3968d28882be17d23 Mon Sep 17 00:00:00 2001 From: Lance Date: Thu, 2 Feb 2006 08:32:57 +0000 Subject: [PATCH] channel joining noob request by up2nogood git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1927 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- plugins/irc/ircclient.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/irc/ircclient.c b/plugins/irc/ircclient.c index 2aba2566c..fbf7e3c83 100644 --- a/plugins/irc/ircclient.c +++ b/plugins/irc/ircclient.c @@ -1908,7 +1908,12 @@ void IRC_Command(char *dest) else if (!strcmp(com_token+1, "join")) { msg = COM_Parse(msg); - IRC_AddClientMessage(ircclient, va("JOIN %s", com_token)); + + if ( *com_token != '#' ) + IRC_AddClientMessage(ircclient, va("JOIN #%s", com_token)); + else + IRC_AddClientMessage(ircclient, va("JOIN %s", com_token)); + } else if (!strcmp(com_token+1, "part") || !strcmp(com_token+1, "leave")) {