24.09.2009, 03:42
Very nice, and much much needed. Thanks Incognito!!!
Originally Posted by InstabiC
Quote:
I now assign the bots into groups under IRC_OnConnect. It seems a little better but when I type the command like 5 times in a row, pretty fast (a second interval?) it still messes up it atleast once. But this is certainly better than it was with Jacob's plugin so thanks a bunch! |
- Fixed bug that crashed the server when internal callback queue began to be filled - Fixed bug with bots in groups that caused IRC_OnUserSay to not be called for individual private messages - Added check to IRC_AddToGroup that prevents bots from being added to a group more than once - Added extra argument to IRC_JoinChannel that lets bots specify a channel key |
Originally Posted by Incognito
Thanks.
Okay, the crash I spoke of earlier was actually a rather nasty bug in the plugin that caused the server to shut down as soon as any IRC callbacks began to be executed. (As of this edit, my DNS plugin has also been updated to reflect these changes, as it uses the same queuing system.) I made one other fix and two small additions as well. Here is the changelog: Quote:
|
Originally Posted by Thingszors
It works
Problem though, it doesn't echo when a user joins or parts sa-mp? A suggestion: Make it possible to echo / commands from sa-mp? |
Originally Posted by [DRuG
sk0t ]
Quote:
|
Originally Posted by Thingszors
Quote:
|
Originally Posted by Incognito
Edit: FUNExtreme, I was able to reproduce your crash on Debian 4/5, but it was only after spamming the same command about 30 times. I will try debugging it later. Thank you for the report.
|
Originally Posted by Jay_
How about a channel parameter for IRC_OnUserSay?
|
public OnPlayerCommandText(playerid, cmdtext[]) { new name[MAX_PLAYER_NAME], ircCommand[256]; GetPlayerName(playerid, name, sizeof(name)); format(ircCommand, sizeof(ircCommand), "02[%i] 07%s: %s", playerid, name, cmdtext); IRC_GroupSay(gGroupID, IRC_CHANNEL, ircCommand); return false; }