URI:
       query and join are now the same - ii - FIFO and filesystem based IRC client
  HTML git clone git://git.codemadness.org/ii
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit ec0b060d277a6c04fb8697d2cb1e43db83092ad8
   DIR parent f9f5866e5a1983958e5be1934c5a2db0d751c112
  HTML Author: nion@localhost <unknown>
       Date:   Sun, 28 May 2006 00:46:35 +0200
       
       query and join are now the same
       
       
       Diffstat:
         M ii.c                                |      22 +++++++++++-----------
       
       1 file changed, 11 insertions(+), 11 deletions(-)
       ---
   DIR diff --git a/ii.c b/ii.c
       @@ -248,8 +248,17 @@ static void proc_channels_input(Channel *c, char *buf)
                        p = strchr(&buf[3], ' ');
                        if(p)
                                *p = 0;
       -                snprintf(message, PIPE_BUF, "JOIN %s\r\n", &buf[3]);
       -                add_channel(&buf[3]);
       +                if(buf[3]=='#'){
       +                        snprintf(message, PIPE_BUF, "JOIN %s\r\n", &buf[3]);
       +                        add_channel(&buf[3]);
       +                }
       +                else{
       +                        if(p){
       +                                add_channel(&buf[3]);
       +                                proc_channels_privmsg(&buf[3], p + 1);
       +                                return;
       +                        }
       +                }
                        break;
                case 't':
                        snprintf(message, PIPE_BUF, "TOPIC %s :%s\r\n", c->name, &buf[3]);
       @@ -262,15 +271,6 @@ static void proc_channels_input(Channel *c, char *buf)
                        else
                                snprintf(message, PIPE_BUF, "AWAY :%s\r\n", &buf[3]);
                        break;
       -        case 'm':
       -                p = strchr(&buf[3], ' ');
       -                if(p) {
       -                        *p = 0;
       -                        add_channel(&buf[3]);
       -                        proc_channels_privmsg(&buf[3], p + 1);
       -                }
       -                return;
       -                break;
                case 'n':
                        snprintf(nick, sizeof(nick),"%s", &buf[3]);
                        snprintf(message, PIPE_BUF, "NICK %s\r\n", &buf[3]);