Raised This Month: $12 Target: $400
 3% 

IRC Relay


Post New Thread Reply   
 
Thread Tools Display Modes
Ywa*NL
Senior Member
Join Date: Apr 2005
Location: The Netherlands
Old 12-29-2007 , 16:06   Re: IRC Relay
Reply With Quote #91

Sorry for the bump.

I get this on Windows (Garry's Mod 10):
Code:
[IRC RELAY] Error sending data. Error ID: 0
[IRC RELAY] Error sending data. Error ID: 10057
I also tried it on another CSS server of me (Linux) but that one also doesn't seem to connect (don't know yet what the error codes there are).

Thanks in advance .

Edit
At the CSS (Linux) server I get this:
Code:
[IRC RELAY] Error sending data. Error ID: 11
[IRC RELAY] Error sending data. Error ID: 11
Yes... twice.
__________________

Last edited by Ywa*NL; 12-29-2007 at 17:33.
Ywa*NL is offline
Send a message via MSN to Ywa*NL
FatGamer.net
Member
Join Date: Oct 2007
Old 12-29-2007 , 21:23   Re: IRC Relay
Reply With Quote #92

There's a problem with the socket extension's send data function. :-/
FatGamer.net is offline
StormRider81
New Member
Join Date: Jan 2008
Location: Livorno, Italy
Old 01-07-2008 , 22:52   Re: IRC Relay
Reply With Quote #93

Hi people. I'm having a problem with this plugin. In facts, if IRC relay disconnects from IRC for reasons such as ping timeout, it doesn't come back on IRC. It happened with my server, the bot got disconnected for ping timeout an if i do a /whois botnickname I receive back a "No suck nick" response. Someone know how to fix it? Another thing: is it possible to add something like autoop for admins on the IRC chan (which can be activated/disactivated with a command)? It would be useful on particular situations, such as no services on the net used for the IRC relay, or services down and so on. Example (thing really happened to me): I got disconnected and when I come back the relay is the only one op in the chan and I can't get op cause of no services. Last thing: is there a trigger or something similar to make relay shows on IRC when a player got connected/disconnected? It would be great if it's possible to make it shows on IRC everything appear on the CS:S chat too, such as adverts, planting/defusing bomb and so on, to make people on IRC know what's happening on the server. Do I ask too much?
StormRider81 is offline
Danthe
Junior Member
Join Date: Apr 2007
Old 01-12-2008 , 07:57   Re: IRC Relay
Reply With Quote #94

Hey like it so far but a few suggestions to make it even better:

1.Report kills & deaths to irc so u can see wats going on in-game at a glance.

2.allow trigger to be optional.

3. Red & blue colours for players on each team in !score and !players commands (jus to make it look pretty )

4. 1 problem. it doesnt recognise ppl with ~(+q) and &(+a) status in irc as having @(+o) status so it gives this message when ive got owner or admin status: "[126:19] <@****> ****: You need at least Operator (+o) status to run this command"

5. I dont know if it is already but if not could all the authserv commands be made optional as a lot of ppl dont use authserv

6. Could players joining & leavign server be reported to irc? and cud players switching teams be reported too?
__________________

Last edited by Danthe; 01-12-2008 at 08:07.
Danthe is offline
Winnetou-jun
Junior Member
Join Date: Jul 2007
Location: Bavaria
Old 01-16-2008 , 18:59   Re: IRC Relay
Reply With Quote #95

oh what a good feature.
Big Big Thanks for this plugin.
It is now very easy for me to see all Servers in one Window to check out for Lamer etc.

Works fine with HL2DM and DOD:S, but wrong Teamlabels.

I Tried out on TF2, but there it dont works, the sockets can not be loaded.

I really like IRC Relay
__________________
Winnetou-jun is offline
Olly
Senior Member
Join Date: Mar 2007
Location: UK
Old 01-18-2008 , 09:50   Re: IRC Relay
Reply With Quote #96

Quote:
Originally Posted by Winnetou-jun View Post
oh what a good feature.
Big Big Thanks for this plugin.
It is now very easy for me to see all Servers in one Window to check out for Lamer etc.

Works fine with HL2DM and DOD:S, but wrong Teamlabels.

I Tried out on TF2, but there it dont works, the sockets can not be loaded.

I really like IRC Relay
I cant believe it still works - I havnt worked on it for sooo long, but I will be updating Sockets extension Very soon =)
__________________
Tumblr Me: http://raspberryteen.tumblr.com


// Yarrrr!
Olly is offline
Send a message via MSN to Olly
FatGamer.net
Member
Join Date: Oct 2007
Old 01-18-2008 , 21:50   Re: IRC Relay
Reply With Quote #97

Yay for socket extension update! DOOOO IT
FatGamer.net is offline
chumly
Senior Member
Join Date: Jul 2006
Old 01-21-2008 , 11:05   Re: IRC Relay
Reply With Quote #98

Hi Olly!
Yes, please get this up and running for the linux servers.
Both original and orangebox if possible.
If you need any help with testing / plugin scripting, let me know. I'll be glad to help.

Thanks
Chumly
chumly is offline
Olly
Senior Member
Join Date: Mar 2007
Location: UK
Old 01-22-2008 , 20:13   Re: IRC Relay
Reply With Quote #99

Ok, i have been working on this for a while now, but im working on IRC Relay 2.0

It will be more modular, so meaning people can make plugins much easier for it, and bug stuff will be easier to fix


This version will focus more on the API section, so people can write 'modules' for it, and not need to know ANYTHING about the IRC protocol.

Here is a little sneak peek at the include file so-far:

Code:
/*********************************************************
 *  Called when the bot is fully connected, and ready to 
 *  send commands and stuff to the server.
 * 
 * @noreturn        
 *********************************************************/
forward OnIrcConnected();

/*********************************************************
 *  Called when someone runs a command on the relay
 *
 * @param    String:name[]      The name of the person who executed the command
 * @param    String:host[]      the host of the executer
 * @param    String:destination[]      The place the message was sent
 * @param    String:command[]      The command that was called
 * @param    argc            The amount of arguments sent
 * 
 * @noreturn        
 *********************************************************/
forward RelayCmd:OnRelayCommand(const String:name[], const String:host[], const String:destination[], const String:command[], const argc);


/*********************************************************
 *  Allows you to register your module, this will be used for getting info
 *  about the plugin, for re-loading etc, and listing
 *
 * @param    Handle:module          The handle of the module plugin
 * @param    String:name[]        The real name of the module, 
 *                     * Spaces will be removed *
 * @noreturn        
 *********************************************************/
native IRC_RegisterModule(Handle:module, const String:name[]);


/*********************************************************
 *  Allows you to register your own irc command, and have
 *  it callback to a function in your plugin when it gets called
 *
 * @param    String:name[]          The name of the command to register
 * @param    function        The callback function in your plugin
 * @noreturn        
 *********************************************************/
functag IRC_Tag_CommandCallback public();
native IRC_RegisterCommand(const String:name[], IRC_Tag_CommandCallback:function);


/*********************************************************
 *  This native will allow external plugins to send RAW 
 *  data to the server
 *
 * @param    String:command[]      The raw data to 
 *                     send to the IRC 
 *                     server.
 * @param    size            The length of the
 *                     raw data.
 * @noreturn        
 *********************************************************/
native IRC_SendRaw(const String:data[], size);


/*********************************************************
 *  This will send a simple message to a user (pm) or 
 *  to a channel
 *
 * @param    String:destination[]      Can either be a channel name (#olly)
 *                     Or a nickname to send a PM
 * @param    String:message[]    The message to send out.
 * @noreturn        
 *********************************************************/
native IRC_PrivMsg(const String:destination[], const String:message[]);

/*********************************************************
 *  This will check if the core is correctly connected, and ready
 *
 * @param bool    True if the core is connected, and ready for commands        
 *********************************************************/
native IRC_IsReady();


/*********************************************************
 *  Count the arguments sent along with our message
 *
 * @return count of arguments    
 *********************************************************/
native IRC_GetCmdArgc();


/*********************************************************
 *  Get the argument number specified
 * 
 * @param  num        The arguemnt number to store
 * @param  String:arg    The buffer to save the argument in
 * @param  size        The size of the buffer
 * @noreturn
 *********************************************************/
native IRC_GetCmdArgv(num, String:arg[], size);


/*********************************************************
 *  Will concatonate arguments starting at the specified argument
 *  and create a string. This is usefull for lazy people who
 *  dont put stuff in " "'s
 * 
 * @param  num        The arguemnt number to store
 * @param  String:arg    The buffer to save the argument in
 * @param  size        The size of the buffer
 * @noreturn
 *********************************************************/
native IRC_MakeArgString(num, String:output[], size);



// Yarr
And one of the first simple modules that will be included
Code:
/*==================================================\
 * IRC relay, Authentication module, 
 * AUTHS with:
 *     AuthServe
 *     NickServ
 *     Q
 *
 * Web: www.steamfiends.com
 * Author: Olly
 * License: GPL
 \==================================================*/
#pragma semicolon 1

#include <sourcemod>
#include <irc-relay>

#define BUILDD __DATE__
#define BUILDT __TIME__


// CVAR Handles
new Handle:g_Cvar_authString = INVALID_HANDLE;
new Handle:g_Cvar_authUsername = INVALID_HANDLE;
new Handle:g_Cvar_authPassword = INVALID_HANDLE;

// Global CVAR Values
new String:g_authString[128]; 
new String:g_authUsername[128];
new String:g_authPassword[128];


public Plugin:myinfo = 
{
    name = "IRC Relay - Auth Module",
    author = "Olly",
    description = "IRC Relay - Authentication Module",
    version = IRC_VERSION,
    url = "http://www.steamfriends.com/"
};


 /*****************************************************************
 * OnPluginStart
 *
 * @breif This function is called when the plugin starts up
 * @noreturn
 *****************************************************************/
public OnPluginStart()
{    
    // Setup our cvars
    g_Cvar_authString = CreateConVar("irc_auth_string","","The string used to auth with the services",FCVAR_PLUGIN);
    g_Cvar_authUsername = CreateConVar("irc_auth_username", "","The username to auth with ",FCVAR_PLUGIN);
    g_Cvar_authPassword = CreateConVar("irc_auth_password","","The password to auth with.",FCVAR_PLUGIN);
}

 /*****************************************************************
 * OnConfigsExecuted
 *
 * @breif Called when all config files have been executed
 * @noreturn
 *****************************************************************/
public OnConfigsExecuted()
{
    // Get the connection settings
    GetConVarString(g_Cvar_authString, g_authString, sizeof(g_authString));
    GetConVarString(g_Cvar_authUsername, g_authUsername, sizeof(g_authUsername));
    GetConVarString(g_Cvar_authPassword, g_authPassword, sizeof(g_authPassword));
    IRC_RegisterModule(GetMyHandle(), "IRCAuth");
}

 /*****************************************************************
 * OnIrcConnected
 *
 * @breif Called when we are connected to the IRC server
 * @noreturn
 *****************************************************************/
public OnIrcConnected()
{
    decl String:authCommand[512];
    Format(authCommand, sizeof(authCommand), g_authString, g_authUsername, g_authPassword);
     IRC_SendRaw(authCommand, strlen(authCommand)+1);
}
//Yarr!
And for all of you wondering, yes there will be a sockets extension update to go along with this

I R PIRATE
__________________
Tumblr Me: http://raspberryteen.tumblr.com


// Yarrrr!
Olly is offline
Send a message via MSN to Olly
Extreme_One
Veteran Member
Join Date: Nov 2006
Old 01-24-2008 , 08:56   Re: IRC Relay
Reply With Quote #100

yay!

I can hardly wait for this Olly, thank you.

Will it work with TF2 'out-of-the-box' or will there be some customising needed by TF2 server admins to get it to work?
__________________

Last edited by Extreme_One; 01-24-2008 at 08:59.
Extreme_One is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode