IRC Relay for SourceMod 2.5.0
1 Attachment(s)
IRC Relay v2.5.0
by InterWave Studios This is a follow-up from my last IRC Relay (1.0) which had lots of bugs, was bloated, and was slow to run on your server. IRC Relay 2.0.0 was re-written COMPLETELY from scratch using the newest SourceMod stuff, unlike the old version which showed 100's of deprecation warnings. The main idea behind this version is 'modularization'. This version has a much better library set of natives that can be called from ANY plugin on the game-server. Doing this I could split up each part of IRC Relay into multiple plugins, so now if you dont need/want a function, you can simply unload the plugin, and IRC Relay will keep working, but without that 'module' Anyway, lets get on with it. Features
Server CVars
You can grab the download over here: http://code.google.com/p/sm-ircrelay/ Bugs, requests and stuff can be done over here: http://tracker.iwcommunity.net/projects/ircrelay |
Re: IRC Relay (v2.0.0)
Installation
If your relay's dont join your channels, then change irc_debug 1 in your config file, and then change the map on the server again, the IRC data will now be shown in the server console, if you dont know why its not joining, then paste the IRC data and your problem in this topic, and ill look at it. Editing Database Config This assumes that your databases.cfg is the same as it is when you install SourceMod for the first time. Your config should look like (or something like) this: Code:
"Databases" If you only have one server, then you can use SQLite which will be stored on your game-server. You will need to add the following below the 'default' section, but before the 'storage-local' section. mySQL Code:
"irc_relay" Code:
"irc_relay" NOTE: if using mySQL the user must have permissions to CREATE TABLE. And the user should have access to the db from a remote location |
Re: IRC Relay (v2.0.0)
Useage
This relay works slightly different from 1.0. Command Syntax The command syntax for all of the relays is: ![trigger].command ARG1 ARG2 ... For example, if you gave your relay the irc_name of css1, and wanted to send a message to everyone in the server, then you would run: !css1.msg HI If you added your relay to a trigger group, then you can run the same command on all relay's in the group by typing this in your channel: [email protected] HI (All groups must be prefixed with an @ symbol) All commands can be run by PM'ing the relay too, but you must leave off the ! and trigger, so msg HI Commands a - This command checks your access level on a specific relay bot, use like: !css.a adduser <username> <password> <access level 1-300> - This is used to add users to the access userlist: use like: !css.adduser gaben hihi 200 auth <username> <password> - This is used to authenticate to the bot, and gain your access level after you leave IRC. Obviously this should be sent in a PM to the relay like: /query RELAYNAME auth gaben hihi users - Lists the users and levels that are added to the relay database kick <playername | partial name> - This will kick a player from your gameserver ban <playername | partial name> <time> - This will ban a player from your server for the time specified rcon <command> - This will run the command specified on the gameserver say [#channel] <message> - This will make the relay say a message in the current channel, or the channel specified (#channel is optional) reload - This will reload any sourcemod plugin on the server, usefull for if there is any bug-fixes from irc-relay, then you can upload the new plugin, and reload it, and the relay will never need to leave IRC version - obviously the version of the relay players - Gives a list of all of the players on the server, and the teams that they are on playerinfo <playername | partial name> - This will give some information about the player specified msg <message>- Will send the specified message to the gameserver page <playername | partial name> <message> - will send the specified message to the user specified gameinfo - Lists some information about the server join <#channel> - makes the relay join the specified channel part <#channel> - makes the relay leave the specified channel die - Will kill the relay instantly, instead of unloading wating for the name to timeout baconize - ;) steam <SteamCommunity URL> - Converts a steam community URL into a Steam ID profile <SteamID> - Converts a steamid into a community URL commands - a list of all of the commands setchat <0|1> - Enable/Disable relay of chat messages to IRC |
Re: IRC Relay (v2.0.0)
Library Natives
v2.0.0 works by all of the seperate modules using the library natives here. And they will also work from any external plugin, you just need to include the irc-relay.inc file, which is in the download in the first post. Forwards OnIrcConnected Code:
/********************************************************* OnRelayPm Code:
/********************************************************* Code:
/********************************************************* Code:
********************************************************* Code:
/********************************************************* Code:
/********************************************************* IRC_GetMsgSender Code:
/********************************************************* IRC_GetSenderHost Code:
/********************************************************* Code:
/********************************************************* IRC_GetMessage Code:
/********************************************************* IRC_RegisterCommand Code:
/********************************************************* IRC_ReplyMsg Code:
/********************************************************* IRC_ReplyNotice Code:
/********************************************************* IRC_Action Code:
/********************************************************* IRC_GetWhoisHost() Code:
/********************************************************* IRC_SendRaw Code:
/********************************************************* Code:
/********************************************************* Code:
/********************************************************* Code:
/********************************************************* Code:
/********************************************************* Code:
/********************************************************* Code:
/********************************************************* Code:
/********************************************************* Code:
/********************************************************* Code:
/********************************************************* Code:
/***************************************************************** |
Re: IRC Relay (v2.0.0)
First reply! w00t! To point out, I'll be pushing to release ATAC's next version, it has a whole bunch of IRC relay functionality built into the next version. Good work though Olly. Hmmm, how about nickserv support?
/NickServ IDENTIFY <password> I know one community who operates on a network which utilizes nickserv. |
Re: IRC Relay (v2.0.0)
Nice release! :)
|
Re: IRC Relay (v2.0.0)
Thats a big readme lol!
|
Re: IRC Relay (v2.0.0)
finally :p
been waiting on this for a long time now... thanks olly :) |
Re: IRC Relay (v2.0.0)
wow wd :)
- Twelve-60 |
Re: IRC Relay (v2.0.0)
W00T :D
Looking forward to trying this. |
All times are GMT -4. The time now is 10:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.