06.03.2009, 14:44
Hello all,
I'm having some trouble when my bots want to join a passworded channel. I have this code:
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:
They also join the channel, but again, quit it straight after. When I remove the password from the channels and use this code:
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.
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" );
}
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" );
}
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" );
}
Thankyou,
Marcel.