[Plugin] IRC Plugin

Hello i had a problem with irc.so

Quote:

SA-MP Dedicated Server
----------------------
v0.3z, ©2005-2014 SA-MP Team

[17:20:44]
[17:20:44] Server Plugins
[17:20:44] --------------
[17:20:44] Loading plugin: sscanf.so
[17:20:44]

[17:20:44] ===============================

[17:20:44] sscanf plugin loaded.

[17:20:44] Version: 2.8.1

[17:20:44] © 2012 Alex "******" Cole

[17:20:44] ===============================

[17:20:44] Loaded.
[17:20:44] Loading plugin: irc.so
[17:20:44] Failed (libcrypto.so.0.9.8: cannot open shared object file: No such file or directory)
[17:20:44] Loaded 1 plugins.

Reply

I think the plugin should ignore the case of channel & user names in all functions.

I encountered a strange bug which has eluded me for a while.

My channel is registered as #sv-rpg

But while the channel was empty due to a ddos, someone else connected using the channel name #SV-RPG

Then the bots joined the channel and the callbacks were returning #SV-RPG as the channel name but in the script I had defined it as #sv-rpg so the functions were failing.

On a more minor note, I have an ingame to irc pm function and it would be more user friendly if they didn't have to get the case of the name exact.

thanks
Light
Reply

why isn't there a simple IRC_IsBotConnected(botid) command?
Reply

Quote:
Originally Posted by Kar
Посмотреть сообщение
why isn't there a simple IRC_IsBotConnected(botid) command?


pawn Код:
new bool:botStatus[MAX_BOTS]={false,...};
public IRC_OnConnect(botid, ip[], port) {
    botStatus[botid] = true;
}

public IRC_OnDisconnect(botid, ip[], port, reason[]) {
    botStatus[botid] = false;
}

bool:IRC_IsBotConnected(botid) {
    return botStatus[botid];
}
Reply

need help idk whats this shit help me :3
Reply

Nice work, keep it up.. Useful..
Reply

how to send a NickServ command like /identify
Reply

Quote:
Originally Posted by mkdim9z6
Посмотреть сообщение
how to send a NickServ command like /identify
When IRC_OnConnect is called, send a message to the nickserv.
Reply

Quote:
Originally Posted by mkdim9z6
Посмотреть сообщение
how to send a NickServ command like /identify
Quote:

#define BOT_PASS "botpassword" //put this somewhere near the top

new tmpString[128];
format(tmpString,sizeof(tmpString),"PRIVMSG NickServ :IDENTIFY %s",BOT_PASS);
IRC_SendRaw(cmdBot,tmpString); //cmdBot is a variable derived from the return value of IRC_Connect

Something like that..
Reply

Why this plugin is usefull and what means IRC in sa-mp?
Reply

Quote:
Originally Posted by Banditukas
Посмотреть сообщение
Why this plugin is usefull and what means IRC in sa-mp?
Ever heard about ******? I think not.

http://en.wikipedia.org/wiki/Internet_Relay_Chat
Reply

Quote:
Originally Posted by Banditukas
Посмотреть сообщение
Why this plugin is usefull and what means IRC in sa-mp?
IRC is a common chat platform known as Internet Relay Chat. This plugin allows you to connect a SA-MP server and IRC server together through the use of IRC bots which allow people on IRC to chat with people on the server. It also allows admins to administrate the server from with-in IRC and not always be connected in-game.
Reply

Updated plugin to fix this bug: http://www.renegade334.me.uk/node/11

(Note: the automatic reconnection system is still enabled by default, but IRC_Quit should be fixed now.)
Reply

Thanks for update.
However, since i was figuring this out with Renegade on IRC (helping him test it out), shouldn't I deserve a small credit as well?

Awesome it got fixed, finally i can avoid getting G_Lined with my terrible code huehue.
Reply

Quote:
Originally Posted by airplanesimen
Посмотреть сообщение
Thanks for update.
However, since i was figuring this out with Renegade on IRC (helping him test it out), shouldn't I deserve a small credit as well?

Awesome it got fixed, finally i can avoid getting G_Lined with my terrible code huehue.
are you serious? you need to earn your credibility, not ask for it.
Reply

Quote:
Originally Posted by KyleSmith
Посмотреть сообщение
are you serious? you need to earn your credibility, not ask for it.
Yeh i am. And he was not aware of that, so how could he?
Reply

Quote:
Originally Posted by airplanesimen
Посмотреть сообщение
Yeh i am. And he was not aware of that, so how could he?
Aware of what? That you helped Renegade? If your help was that significant, Renegade would have mentioned you.
Reply

The server I script for, which is Linux, will timeout on connections to IRC.
My windows computer will connect fine with no issues, but the linux server will not connect and will timeout every attempt.

What is the cause and how do I fix this.
Reply

Idk why..
Код:
IRC_GroupSay(groupID, "%#IRCCHANNELHERE", ircMsg);
does not send irc channel message to users who have irc op or above users. Help me?
Reply

Quote:
Originally Posted by Kingmac
Посмотреть сообщение
Idk why..
Код:
IRC_GroupSay(groupID, "%#IRCCHANNELHERE", ircMsg);
does not send irc channel message to users who have irc op or above users. Help me?
Make sure bots have level % or higher
and that the channel is correct.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)