IRC Bot question
#1

Hi, I'm using Incognito's IRC Plugin, but to protect my bot, I'd like to add it to the operator's list...
To do that I need the bot to login, though....
How could I make it login automatically?
Reply
#2

depends on your script....pInfo[logged] ...
Reply
#3

You need to use this function:

pawn Код:
IRC_SendRaw(botid, const message[]);
What you need to send to the IRC server though depends on the server, so I cannot help you there.
Reply
#4

I want to know the IRC code....
only the part that logs it in... I can add it to the right script part on my own.


Edit: thanks

I used this:
pawn Код:
public IRC_OnJoinChannel(botid, channel[])
{
    IRC_SendRaw(botid, "/ns identify password");
    return 1;
}
but it doesn't work...
what's wrong?
Reply
#5

You wouldn't include the /, that's an IRC client standard telling the client to send a command to the server instead of a message. The bot doesn't need /.
Reply
#6

thanks, works now
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)