Page 1 of 1

[Mod] Server login over IRC [irc_commands]

PostPosted: Tue Mar 26, 2013 05:21
by ShadowNinja
This is a mod that allows you to run any command on a server over IRC using the IRC mod.

Instructions:
1. Setup your server with the IRC mod.
2. Private message the server your username and password with the !login command, for example /msg Shadow-Server !login ShadowNinja password.
3. Run a chat command with !cmd or say something with !say, for example !command time 0 or !say Hi from IRC!.
4. When you are done run !logout.

Notes:
Any user can log in and multiple users can be logged in at the same time.
Nick changes are followed and quitting IRC automatically logs you out.
You can only run commands that you have privileges for.

Dependencies: IRC
License: WTFPL
Download: https://github.com/ShadowNinja/minetest-irc_commands

PostPosted: Tue Mar 26, 2013 05:25
by kaeza
I'm glad people find IRC mod useful. With this addition, server admins do not need to log into the game to ban players, grant or revoke privs, etc.
This is excellent Shadow!

PostPosted: Tue Mar 26, 2013 11:49
by Traxie21
Holy sheet! now I need to fic up some of my commands to support this.

PostPosted: Tue Mar 26, 2013 14:22
by ShadowNinja
Traxie21 wrote:Holy sheet! now I need to fic up some of my commands to support this.


This should work with most commands, however you might have to make sure that the command can be run by offline players without crashing.

Edit: messages sent with minetest.chat_send_player() are now also sent to an IRC user if they are logged in.

PostPosted: Tue Mar 26, 2013 14:34
by Traxie21
Yep. Some of my commands, Eg nick, will crash if theres not a valid player.

PostPosted: Tue Mar 26, 2013 16:39
by jordan4ibanez
This is very good, could you also make a command line addition for servers like this? Like instead of logging into an irc, when you start the server, you have the ability to type into the black server window and execute commands from there?

PostPosted: Thu Mar 28, 2013 01:52
by ShadowNinja
jordan4ibanez wrote:This is very good, could you also make a command line addition for servers like this? Like instead of logging into an irc, when you start the server, you have the ability to type into the black server window and execute commands from there?

I use a heavily modified version of Menche's external_cmd mod for this, maybe I can have him push it or make my own fork.
However you will have to use a separate window for it.

PostPosted: Thu Mar 28, 2013 02:47
by ShadowNinja
Update: !command has been renamed to !cmd, !say has been added, and a few other backend things like logging have been added.

Another update: Now nick changes are followed and quitting from IRC logs you out.

Re: [Mod] Server login over IRC [irc_commands]

PostPosted: Fri Feb 26, 2016 17:48
by DI3HARD139
Not sure if this is an issue with irc or irc_commands but I am unable to login to new servers from irc. It keeps saying that the player doesnt exist or wrong password even though the info typed its correct.

Re: [Mod] Server login over IRC [irc_commands]

PostPosted: Fri Feb 26, 2016 17:58
by rubenwardy
That cannot be solved by this mod. You need to change your password ingame using /setpassword. The password as it currently is is a SRP password, you need to change it to a legacy password using /setpassword.

Re: [Mod] Server login over IRC [irc_commands]

PostPosted: Fri Feb 26, 2016 18:38
by ShadowNinja
DI3HARD139 wrote:I am unable to login to new servers from irc.

This issue is an incompatibility with the new Secure Remote Password (SRP) authentication system.
irc_commands isn't able to verify passwords with the new authentication tokens. As rubenwardy pointed out, you can disable SRP for your account by resetting your password with the /setpassword command. However, this is not ideal because it makes regular authentication less secure. A proper solution could be done if this commit is merged.

Re: [Mod] Server login over IRC [irc_commands]

PostPosted: Mon Feb 29, 2016 01:49
by DI3HARD139
Ok ty

Re: [Mod] Server login over IRC [irc_commands]

PostPosted: Sat Aug 27, 2016 01:12
by Tmanyo
For some reason on one of my servers I have this issue. I know I have irc and irc_commands, and that irc_commands recognizes that I message the server stuff but will not let me log in. I do /msg (server) tmanyo (pass) and it replies with nothing. So I do /msg (server) tmanyo and it says Playername and Password required. I try to use the commands to see if it is just a bug and I am really logged in, but sadly it gives me the message, you are not logged in. Can someone please help? Thank you in advance.

Re: [Mod] Server login over IRC [irc_commands]

PostPosted: Sat Aug 27, 2016 03:23
by ShadowNinja
Tmanyo wrote:I do /msg (server) tmanyo (pass) and it replies with nothing. So I do /msg (server) tmanyo and it says Playername and Password required. I try to use the commands to see if it is just a bug and I am really logged in, but sadly it gives me the message, you are not logged in.

Well, the command is /msg server login username password. If you did this correctly and just mistyped your post, try setting irc.debug = true and looking in the debug log.
Also, you should update Minetest and irc_commands to the latest version, in order to get SRP support (you'll have to update to a Git version of Minetest, 0.4.14 isn't new enough).
If the server and mod are up to date, it still won't work, and you can't figure out, please post the lines in the debug log (with irc.debug = true) around when you tried to log in (replacing your password with something like <redacted> of course).

Re: [Mod] Server login over IRC [irc_commands]

PostPosted: Sat Aug 27, 2016 22:27
by DI3HARD139
I didn't realize that irc_commands got an update. DLing now. Been working fine for me though. I just make sure to do /setpassword on the servers that I can.