This repository has been archived by the owner on Feb 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 535
Allow per server configuration in server list for network #899
Comments
Make another network entirely. |
Part of the use case I'm trying to enable is, if the hub goes down say due to maint or some other issue, I'd like to automatically move over to the main host and connect to a leaf... which is the point of the server list |
Network options are already limited and painful to extend, adding another layer to servers sounds like a huge pain for a single users use case. |
Is this something that can be accomplished by a plugin or a script then? Based on what I've found so far seems the answer is no. |
Here is a rough idea, untested and not very flexible: import hexchat
__module_name__ = 'ServerPass'
__module_author__ = 'TingPing'
__module_version__ = '1'
__module_description__ = 'Sends a specific password for a specific server.'
def connected_cb(word, word_eol, userdata):
if hexchat.get_info('host') == 'example.org':
username = hexchat.get_prefs ('irc_user_name')
password = 'hunter2'
hexchat.command('quote PASS {}:{}'.format(username, password))
hexchat.hook_print('Connected', connected_cb) |
Excellent, thank you. I'll see what I can do with this and maybe make it a usable plugin. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have a case where I have access to a network's hub server which requires a server password to connect and I wish to also add the main network address in case things go sideways (the hub is on a separate host for security reasons). However, I am unable to add the main address properly to the server list as it thinks the password is for this particular host and not the hub, could we add a way to configure per server passwords for a given network?
The text was updated successfully, but these errors were encountered: