[Mod] Server login over IRC [irc_commands]

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

[Mod] Server login over IRC [irc_commands]

by ShadowNinja » Tue Mar 26, 2013 05:21

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.
The best way to contact me is usually IRC (InchraNet, freenode).
 

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

by kaeza » Tue Mar 26, 2013 05:25

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 | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

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

by Traxie21 » Tue Mar 26, 2013 11:49

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

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

by ShadowNinja » Tue Mar 26, 2013 14:22

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.
The best way to contact me is usually IRC (InchraNet, freenode).
 

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

by Traxie21 » Tue Mar 26, 2013 14:34

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

User avatar
jordan4ibanez
Member
 
Posts: 1893
Joined: Tue Sep 27, 2011 18:44
Location: Rhode Island, USA
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Tue Mar 26, 2013 16:39

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?
If you can think it, you can make it! My Patreon :D
 

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

by ShadowNinja » Thu Mar 28, 2013 01:52

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.
The best way to contact me is usually IRC (InchraNet, freenode).
 

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

by ShadowNinja » Thu Mar 28, 2013 02:47

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.
The best way to contact me is usually IRC (InchraNet, freenode).
 

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 » Fri Feb 26, 2016 17:48

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: 5494
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

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

by rubenwardy » Fri Feb 26, 2016 17:58

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.
 

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

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

by ShadowNinja » Fri Feb 26, 2016 18:38

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.
The best way to contact me is usually IRC (InchraNet, freenode).
 

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

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

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

by Tmanyo » Sat Aug 27, 2016 01:12

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: 199
Joined: Tue Jan 22, 2013 22:35
GitHub: ShadowNinja
IRC: ShadowNinja
In-game: ShadowNinja

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

by ShadowNinja » Sat Aug 27, 2016 03:23

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).
The best way to contact me is usually IRC (InchraNet, freenode).
 

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 » Sat Aug 27, 2016 22:27

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.
 


Return to Mod Releases



Who is online

Users browsing this forum: diego19x9 and 8 guests