Weechat: Allow multiple connections to one server

Created on 19 Oct 2016  路  5Comments  路  Source: weechat/weechat

I use ZNC with a bunch of different networks and with irssi I'm used to open as many connections as I need to the ZNC and login with username/network:(password on clients without my user cert). Weechat only allows one simultaneous connection to a saved server and therefore is not suitable for this usecase. Since I use IRC on my workingmachine I cannot simply add more server shortcuts with my login information in them because I don't want our inhouse IT to access them.

Could you please remove this limitation?

feature

All 5 comments

Hi,

This is not planned to add multiple connections to one server. It's done like that by design, it's not a "bug".

You can very easily add other servers and share the same credentials using secured data (for example by using ${sec.data.freenode_password} in options (command, password, ...).

I leave this issue opened, but it's not planned in near future to change that behavior (this would introduce major changes in irc plugin, and plugins/scripts API).

The /server copy command might be useful too.

If you exclusively use WeeChat to connect to a single ZNC instance you can configure its connection settings under irc.server_default.* options and add new servers without anything extra configured, except for the different username to connect to a different ZNC network for the ZNC user, for example. This way you can minimize the duplication required between servers in WeeChat.

  • I am hitting this limitation too, and not overcoming it will mean I cannot use weechat with znc for my use case ..
irc: server "blah" already exists, can't add it!

Elaborating a bit

  • I am using /secure for connection details .. looking at irc.conf, the difference between my different znc networks as defined under this server is probably just: blah.username .. but it's not clear how I can implement @flashcode's suggestion
  • Then looking at the server_default section, it's also unclear how I can implement @sim642's suggestions
  • @flashcode , @sim642, please, can you elaborate on your suggested solutions. An example would help.

@laymonk: in WeeChat you can create as many servers as you want, and they can use same address and username/password.
In WeeChat, there's are default options for all servers (irc.server_default.xxx) and server options which are null automatically inherits from the value in irc.server_default.xxx.

For example if you have:

irc.server_default.address = "localhost/6667"
irc.server_default.username = "xxx"
irc.server.znc1.address = null
irc.server.znc1.username = null
irc.server.znc2.address = null
irc.server.znc2.username = null

Then you can connect two times to znc with /connect znc1 and /connect znc2(address: localhost/6667) with the same username "xxx".

Was this page helpful?
0 / 5 - 0 ratings

Related issues

linuxdaemon picture linuxdaemon  路  6Comments

mitchellwrosen picture mitchellwrosen  路  5Comments

antoyo picture antoyo  路  5Comments

Strykar picture Strykar  路  4Comments

craigmaloney picture craigmaloney  路  3Comments