[hackers] [ii] enabled joining channels with password

From: <nion_AT_aurora>
Date: Fri Jun 22 13:41:52 2007

changeset: 66:6d50a519883a
tag: tip
user: nion_AT_aurora
date: Fri Jun 22 13:40:24 2007 +0200
summary: enabled joining channels with password

diff -r 5024361b350e -r 6d50a519883a ii.c
--- a/ii.c Tue Jun 12 11:05:33 2007 +0200
+++ b/ii.c Fri Jun 22 13:40:24 2007 +0200
@@ -237,10 +237,11 @@ static void proc_channels_input(Channel
                         p = strchr(&buf[3], ' ');
                         if(p) *p = 0;
                         if((buf[3]=='#')||(buf[3]=='&')||(buf[3]=='+')||(buf[3]=='!')){
- snprintf(message, PIPE_BUF, "JOIN %s\r\n", &buf[3]);
+ if(p) snprintf(message, PIPE_BUF, "JOIN %s %s\r\n", &buf[3], p + 1);
+ else snprintf(message, PIPE_BUF, "JOIN %s\r\n", &buf[3]);
                                 add_channel(&buf[3]);
                         }
- else{
+ else {
                                 if(p){
                                         add_channel(&buf[3]);
                                         proc_channels_privmsg(&buf[3], p + 1);
Received on Fri Jun 22 2007 - 13:41:52 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:57:20 UTC