[Mod] Server login over IRC [irc_commands]

Post Reply
User avatar
ShadowNinja
Developer
Posts: 200
Joined: Tue Jan 22, 2013 22:35
GitHub: ShadowNinja
IRC: ShadowNinja
In-game: ShadowNinja

[Mod] Server login over IRC [irc_commands]

by ShadowNinja » Post

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
Last edited by ShadowNinja on Wed Apr 24, 2013 20:56, edited 1 time in total.

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

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!
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

User avatar
Traxie21
Member
Posts: 753
Joined: Mon Dec 31, 2012 10:48
Location: McKinney, Texas U.S.A.
Contact:

by Traxie21 » Post

Holy sheet! now I need to fic up some of my commands to support this.

User avatar
ShadowNinja
Developer
Posts: 200
Joined: Tue Jan 22, 2013 22:35
GitHub: ShadowNinja
IRC: ShadowNinja
In-game: ShadowNinja

by ShadowNinja » Post

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.
Last edited by ShadowNinja on Thu Mar 28, 2013 02:02, edited 1 time in total.

User avatar
Traxie21
Member
Posts: 753
Joined: Mon Dec 31, 2012 10:48
Location: McKinney, Texas U.S.A.
Contact:

by Traxie21 » Post

Yep. Some of my commands, Eg nick, will crash if theres not a valid player.

User avatar
jordan4ibanez
Member
Posts: 1923
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Post

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?
hello, am program. do language in rust. make computer do. okay i go now.

User avatar
ShadowNinja
Developer
Posts: 200
Joined: Tue Jan 22, 2013 22:35
GitHub: ShadowNinja
IRC: ShadowNinja
In-game: ShadowNinja

by ShadowNinja » Post

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.
Last edited by ShadowNinja on Thu Mar 28, 2013 01:56, edited 1 time in total.

User avatar
ShadowNinja
Developer
Posts: 200
Joined: Tue Jan 22, 2013 22:35
GitHub: ShadowNinja
IRC: ShadowNinja
In-game: ShadowNinja

by ShadowNinja » Post

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.
Last edited by ShadowNinja on Fri Mar 29, 2013 03:03, edited 1 time in total.

User avatar
DI3HARD139
Member
Posts: 154
Joined: Sat Oct 18, 2014 21:04
GitHub: DI3HARD139
IRC: DI3HARD139
In-game: DI3HARD139 DI3HARD139_

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

by DI3HARD139 » Post

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.

User avatar
rubenwardy
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

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

by rubenwardy » Post

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.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
ShadowNinja
Developer
Posts: 200
Joined: Tue Jan 22, 2013 22:35
GitHub: ShadowNinja
IRC: ShadowNinja
In-game: ShadowNinja

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

by ShadowNinja » Post

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.

User avatar
DI3HARD139
Member
Posts: 154
Joined: Sat Oct 18, 2014 21:04
GitHub: DI3HARD139
IRC: DI3HARD139
In-game: DI3HARD139 DI3HARD139_

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

by DI3HARD139 » Post

Ok ty

User avatar
Tmanyo
Member
Posts: 196
Joined: Mon Sep 29, 2014 01:20
GitHub: Tmanyo
IRC: Tmanyo
In-game: tmanyo
Location: United States
Contact:

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

by Tmanyo » Post

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.
Tmanyo
http://www.rrhmsservers.ml
Servers I Host:
Tmanyo-Realism
Mods of mine that I don't totally hate:
Bank Accounts
T-Rating
Tmusic Player

User avatar
ShadowNinja
Developer
Posts: 200
Joined: Tue Jan 22, 2013 22:35
GitHub: ShadowNinja
IRC: ShadowNinja
In-game: ShadowNinja

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

by ShadowNinja » Post

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).

User avatar
DI3HARD139
Member
Posts: 154
Joined: Sat Oct 18, 2014 21:04
GitHub: DI3HARD139
IRC: DI3HARD139
In-game: DI3HARD139 DI3HARD139_

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

by DI3HARD139 » Post

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.

Post Reply

Who is online

Users browsing this forum: talamh and 32 guests