IRC Bot question - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: IRC Bot question (
/showthread.php?tid=209440)
IRC Bot question -
Sascha - 10.01.2011
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?
Re: IRC Bot question -
Rizard - 10.01.2011
depends on your script....pInfo[logged] ...
Re: IRC Bot question -
JaTochNietDan - 10.01.2011
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.
-
Sascha - 10.01.2011
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?
Re: IRC Bot question -
JaTochNietDan - 10.01.2011
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 /.
Re: IRC Bot question -
Sascha - 10.01.2011
thanks, works now