Page 1 of 6

[Mod] Internet Relay Chat bridge [irc]

Posted: Fri Nov 30, 2012 10:17
by kaeza

Internet Relay Chat Mod

This mod provides a two-way communication between the in-game chat, and an arbitrary IRC channel.
This is done by connecting a bot to the channel, that acts as a "proxy" for messages.

The code of the actual mod is released under the BSD 2 Clause License (see LICENSE.txt).
Licenses for modules/libraries used are on their respective LICENSE files.

Dependencies: default

Check out our official IRC channel ##mt-irc-mod on Freenode!

Note: Should work fine under *nix, but for Windows it needs some special setup (old alternative).

Important Note: If you intend to run this on a server where non-ASCII characters may be used (e.g. non-english-speaking servers), be sure your environment's language encoding is set to UTF-8. Otherwise, you may see errors about "character conversion failed" or "invalid wstring". Thanks to fireglow for helping sort this out.

By the way, if you want to see a demo of this mod, join #minetest at irc.inchra.net.

Please read the SETTINGS section in the README file for info about how to configure.

Downloads Add-ons:
  • irc_commands by ShadowNinja - Enables running chat commands via IRC.
Thanks for taking your time to read this :)

I'd like to thank the users who allowed to test this in #minetest, and all of those who suggested improvements, and helped me by providing tips (in no particular order):

0gb.us, Shadow/ShadowNinja, Shaun/kizeren, RAPHAEL, DARGON, Calinou, Exio, vortexlabs/mrtux, marveidemanis, marktraceur, jmf/john_minetest, sdzen/Muadtralk, VanessaE, PilzAdam, sfan5, celeron55, KikaRz, RealBadAngel, and all the people who commented in here. Thanks to you all!

(If I forgot to mention someone, I apologize in advance. Please catch me on #minetest and notice me.)

Posted: Fri Nov 30, 2012 12:03
by PilzAdam
I give you my 1000th post!
Congrantulation!
This mod is awesome!

Posted: Fri Nov 30, 2012 12:08
by kaeza
Very much appreciated, noble sir!

Posted: Fri Nov 30, 2012 13:36
by tonyka
100% agree with Adam, great job

Posted: Fri Nov 30, 2012 14:15
by Mito551
cool. is it lua?

Posted: Fri Nov 30, 2012 14:24
by kaeza
tonyka wrote: 100% agree with Adam, great job
gracias tonyka!
Mito551 wrote: cool. is it lua?
Thanks Mito551.

It's part in Lua and part in C.
The low-level sockets interface is in C.
The IRC encapsulation, and the mod itself are in Lua.

I will provide a link to source soon.

Posted: Fri Nov 30, 2012 17:24
by jordan4ibanez
Oh wow, super nice

Posted: Fri Nov 30, 2012 17:45
by rubenwardy
Amazing!

Posted: Fri Nov 30, 2012 19:24
by sfan5
This Mo is purely awesome

Posted: Fri Nov 30, 2012 20:09
by Mito551
it's amazing! we'll see how well it goes :D

Posted: Fri Nov 30, 2012 23:16
by InfinityProject
Will there be support for Windows in the future?

Posted: Fri Nov 30, 2012 23:50
by kaeza
InfinityProject wrote: Will there be support for Windows in the future?
Whenever someone with a Windows environment can compile it.

Added link to GitHub (see first post)

Posted: Sat Dec 01, 2012 02:06
by Josh
Cool :) is this used to talk to people on IRC while playing?

Posted: Sat Dec 01, 2012 02:09
by kaeza
Josh wrote: Cool :) is this used to talk to people on IRC while playing?
Yeah. Both to talk to IRC from within game and to read from IRC channel too.

Posted: Sat Dec 01, 2012 02:12
by Josh
kaeza wrote:
Josh wrote: Cool :) is this used to talk to people on IRC while playing?
Yeah. Both to talk to IRC from within game and to read from IRC channel too.
Cool!

Posted: Sat Dec 01, 2012 04:52
by yohoho
This may seem a little noobish but how to use this mod? I downloaded the master zip from github and I see no "irc" directory to copy over. Do I extract the master zip file and rename that folder irc and copy it? Or must this be compiled somehow first? The "outdated" link looks a lot different than the github master zip.

Posted: Sat Dec 01, 2012 07:51
by sfan5
yohoho wrote:This may seem a little noobish but how to use this mod? I downloaded the master zip from github and I see no "irc" directory to copy over. Do I extract the master zip file and rename that folder irc and copy it? Or must this be compiled somehow first? The "outdated" link looks a lot different than the github master zip.
Do you have Windows?

Posted: Sat Dec 01, 2012 09:05
by Ragnar
OMFG!!!
With this PilzAdam can help me with bugs while im playing :D

Posted: Sat Dec 01, 2012 13:03
by GJH105775
Great, I am a 12.04 user in ubuntu.

Posted: Sat Dec 01, 2012 20:27
by kaeza
yohoho wrote:This may seem a little noobish but how to use this mod? I downloaded the master zip from github and I see no "irc" directory to copy over. Do I extract the master zip file and rename that folder irc and copy it? Or must this be compiled somehow first? The "outdated" link looks a lot different than the github master zip.
Well, first things first. The "outdated" link is a precompiled version I used for testing, and it came in a ready to use mod directory. The github "master.zip" contains the source code which you need to compile. I updated both the Linux package and committed some changes to github (see first post).
Windows users will have to compile and test themselves or wait until someone posts a precompiled version, sorry.
GJH105775 wrote: Great, I am a 12.04 user in ubuntu.
Just download the updated Linux version then :)

EDIT: 100TH POST!!!!1!!!one!!!eleven!!!!

Posted: Sat Dec 01, 2012 21:53
by yohoho
"Do you have Windows?" No on Linux Mint 13.

"0.1.1 - Linux <-- Latest" 404ed

Still don't know how to "prepare" the github master zip to get it working (not overly familiar with compiling of source code without some instructions).

May I suggest adding to github a file on what is needed to compile the mod?

Posted: Sat Dec 01, 2012 22:07
by kaeza
yohoho wrote: "0.1.1 - Linux <-- Latest" 404ed
Sorry, was a typo. It's fixed now.
yohoho wrote: Still don't know how to "prepare" the github master zip to get it working (not overly familiar with compiling of source code without some instructions).
Catch me in IRC if you can, and I may be able to help you. Thanks.

Posted: Sun Dec 02, 2012 11:19
by MirceaKitsune
Very nice mod! I completely approve :D

Posted: Sun Dec 02, 2012 15:23
by fgr
no real instruction included ... i compiled it, made the irc folder with the package.sh and placed it into the minetest mod folder, edited my irc server settings and channel, but no more instructions are available. Restartet the server and nothing happened.

after placed some ambigious command like /irc the server crashed.

Code: Select all

ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaError: error: ../mods/irc/init.lua:107: attempt to index global 'player' (a nil value)
ERROR[main]: stack traceback:

In thread 7f1b23cec740:
/build/buildd/minetestc55-0.4.3/src/main.cpp:1741: int main(int, char**): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD 7f1b23cec740:
#0  int main(int, char**)
how about servers and password? If the server reuquests userpassword, does this mod then currently work? I mean MT server password

Posted: Sun Dec 02, 2012 16:41
by guilleelcapoextra
but only good for the Linux version tanvien ubuntu or windows used for community