IRC, joining a passworded channel with bots.
#1

Hello all,

I'm having some trouble when my bots want to join a passworded channel. I have this code:
pawn Код:
for( new i = 0; i < sizeof( EchoConnection ); i++ )
    {

        EchoConnection[ i ] = ircConnect( IRC_SERVER , IRC_PORT , Bot[ i ] );
        ircSendRawData( EchoConnection[ i ] , "PRIVMSG NickServ :IDENTIFY "IRC_PASSWORD" " );
        ircSendRawData( EchoConnection[ i ] , "JOIN #channel" );
        ircSendRawData( EchoConnection[ i ] , "JOIN #channel" );
        ircSendRawData( EchoConnection[ i ] , "JOIN #channel :pass" );
        ircSendRawData( EchoConnection[ i ] , "JOIN #channel :pass" );
        ircSendRawData( EchoConnection[ i ] , "JOIN #channel :pass" )
    }
In the above example all #channel things are different from each other.
This doesn't work, the bots join the channel, but quit it straight after. The same goes for this code:
pawn Код:
for( new i = 0; i < sizeof( EchoConnection ); i++ )
    {

        EchoConnection[ i ] = ircConnect( IRC_SERVER , IRC_PORT , Bot[ i ] );
        ircSendRawData( EchoConnection[ i ] , "PRIVMSG NickServ :IDENTIFY "IRC_PASSWORD" " );
        ircSendRawData( EchoConnection[ i ] , "JOIN #channel" );
        ircSendRawData( EchoConnection[ i ] , "JOIN #channel" );
        ircSendRawData( EchoConnection[ i ] , "JOIN #channel pass" );
        ircSendRawData( EchoConnection[ i ] , "JOIN #channel pass" );
        ircSendRawData( EchoConnection[ i ] , "JOIN #channel pass" );  
    }
They also join the channel, but again, quit it straight after. When I remove the password from the channels and use this code:
pawn Код:
for( new i = 0; i < sizeof( EchoConnection ); i++ )
    {

        EchoConnection[ i ] = ircConnect( IRC_SERVER , IRC_PORT , Bot[ i ] );
        ircSendRawData( EchoConnection[ i ] , "PRIVMSG NickServ :IDENTIFY "IRC_PASSWORD" " );
        ircSendRawData( EchoConnection[ i ] , "JOIN #channel" );
        ircSendRawData( EchoConnection[ i ] , "JOIN #channel" );
        ircSendRawData( EchoConnection[ i ] , "JOIN #channel" );
        ircSendRawData( EchoConnection[ i ] , "JOIN #channel" );
        ircSendRawData( EchoConnection[ i ] , "JOIN #channel" );   
    }
Everything is fine. I bet it's a problem with ircSendRawData. If anyone is able to help me with this I'd really appreciate it.

Thankyou,
Marcel.
Reply


Messages In This Thread
IRC, joining a passworded channel with bots. - by Marcel - 06.03.2009, 14:44
Re: IRC, joining a passworded channel with bots. - by NigNog1 - 06.03.2009, 14:54
Re: IRC, joining a passworded channel with bots. - by Marcel - 06.03.2009, 14:59
Re: IRC, joining a passworded channel with bots. - by Marcel - 07.03.2009, 14:38
Re: IRC, joining a passworded channel with bots. - by Marcel - 07.03.2009, 23:36
Re: IRC, joining a passworded channel with bots. - by [DRD]Rodney - 17.06.2010, 20:00

Forum Jump:


Users browsing this thread: 1 Guest(s)