

NOTE: 'theReason' can be nil if 'theUser' has quit without a reason.Ĭhannel theIRCChannel, string theReason, user theKicker You may want to use addEvent("eventName") to use them. The irc resource doesn't use the irc modes system for its acl, instead the modes were replaced with numbers.Īll other users without a special mode are level 0ĭuring the irc proces some events are triggered to help you write extensions for the irc resource. Users are the following elements type: 'irc-user'.Channels are the following elements type: 'irc-channel'.Servers are the following elements type: 'irc-server'.The echoChannelOnly is wether the command can be used outside the echo channelĪll users, channels & servers known by the irc resource are represented by elements.The level is the minimum level the irc user needs to have in order to use this command.The name is the command including the exclamation mark.The acl.xml file inside the irc resource takes care of the acl rights for irc commands. Now you can run the resource, if the server was running during this installation proces you will have to do /loadmodule ml_sockets.dll or /loadmodule ml_sockets.so and /refreshall before doing /start irc Any missing rights will prevent the resource from loading and will output a message in the console. Acl rights The resource needs a couple of acl rights in order to work properly, including addBan, kickPlayer & callRemote.Mod the meta.xml file: In this file a few settings can be found regarding ads and ingame gui's, do not mod anything else! You can also change these settings in the admin panel once the resource has been loaded.Mod the settings.xml file: Open this file and follow the instructions inside to configure the IRC bot.Download the resource: The IRC resource can be found on the community, put it in the resources folder.Add the module to the nf file: To load the module when the MTA server starts, put this line in your config file for Windows and in the config file for Linux.Put the module in the MTA folder: In order for MTA to load the module it must be placed in the mods/deathmatch/modules folder, if this folder does not exist yet, make it.Download the ml_sockets.dll file for Windows and the ml_sockets.so file for Linux Download the module: You can download the module here.To get this resource working on your Linux or Windows server, follow these steps: Information about "irc" or "Internet Relay Chat" can be found on Wikipedia. The "irc" resource provides an echobot that outputs information such as chatmessages on a irc channel.
