[Mod] Server login over IRC [irc_commands]
- 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]
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
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.
- kaeza
- Moderator
- Posts: 2162
- Joined: Thu Oct 18, 2012 05:00
- GitHub: kaeza
- IRC: kaeza diemartin blaaaaargh
- In-game: kaeza
- Location: Montevideo, Uruguay
- Contact:
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!
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
Check out my stuff! | Donations greatly appreciated! PayPal
Holy sheet! now I need to fic up some of my commands to support this.
My Essential Server Modpack: ServerExtended
Maintainer of the Minitest Game
[0.4.6-git] SunriseTest Minecraft-Like Hardcore Server
My Kindle broke... Online time will drop significantly.
Maintainer of the Minitest Game
[0.4.6-git] SunriseTest Minecraft-Like Hardcore Server
My Kindle broke... Online time will drop significantly.
- ShadowNinja
- Developer
- Posts: 200
- Joined: Tue Jan 22, 2013 22:35
- GitHub: ShadowNinja
- IRC: ShadowNinja
- In-game: ShadowNinja
This should work with most commands, however you might have to make sure that the command can be run by offline players without crashing.Traxie21 wrote:Holy sheet! now I need to fic up some of my commands to support this.
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.
Yep. Some of my commands, Eg nick, will crash if theres not a valid player.
My Essential Server Modpack: ServerExtended
Maintainer of the Minitest Game
[0.4.6-git] SunriseTest Minecraft-Like Hardcore Server
My Kindle broke... Online time will drop significantly.
Maintainer of the Minitest Game
[0.4.6-git] SunriseTest Minecraft-Like Hardcore Server
My Kindle broke... Online time will drop significantly.
- jordan4ibanez
- Member
- Posts: 1923
- Joined: Tue Sep 27, 2011 18:44
- GitHub: jordan4ibanez
- IRC: jordan4ibanez
- In-game: 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?
hello, am program. do language in rust. make computer do. okay i go now.
- ShadowNinja
- Developer
- Posts: 200
- Joined: Tue Jan 22, 2013 22:35
- GitHub: ShadowNinja
- IRC: ShadowNinja
- In-game: ShadowNinja
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.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?
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.
- ShadowNinja
- Developer
- Posts: 200
- Joined: Tue Jan 22, 2013 22:35
- GitHub: ShadowNinja
- IRC: ShadowNinja
- In-game: 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.
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.
- 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]
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.
- 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]
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.
- 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]
This issue is an incompatibility with the new Secure Remote Password (SRP) authentication system.DI3HARD139 wrote:I am unable to login to new servers from irc.
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.
- DI3HARD139
- Member
- Posts: 154
- Joined: Sat Oct 18, 2014 21:04
- GitHub: DI3HARD139
- IRC: DI3HARD139
- In-game: DI3HARD139 DI3HARD139_
- 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]
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
http://www.rrhmsservers.ml
Servers I Host:
Tmanyo-Realism
Mods of mine that I don't totally hate:
Bank Accounts
T-Rating
Tmusic Player
- 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]
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.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.
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).
- 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]
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.
Who is online
Users browsing this forum: Bing [Bot], Kazooo and 31 guests