6
2
I use an IRC client both at home and at work. I would like both computers to use the same user (for IDENT purposes and avoiding multiple nicks etc)
Typically, the home computer is always-on, and is IDENTified as my user. The work computer is connected only when I'm actually at work. I have quite a few scripts and settings, and would like to keep everything in one place, which is why I use a portable client (specifically mIRC in portable mode for now, but not necessarily limited to this client) in a dropbox dir.
Currently, I just opened two users, both with IDENTities (i.e. nick and nick|work), one for each computer. This way I can keep them both idle.
What I would like to do is something like the following:
- The first client that gets online identifies and performs all its remote scripts. No Problem.
- If another client tries to connect, but the name is already taken (by the previous client), disconnect the other (idling) client, and assume its identity.
- This should be able to go on for as many clients as I wish - as long as only one client is active.
I was thinking of maybe creating a script to "disconnect-idle", which will send a special message to the idling client. This client will parse the message, and will disconnect itself from the server if everything is as specified.
Any ideas on how this can be achieved? Code samples (mIRC scripts or others) would be much appreciated.
2
The usual approach is to use a so called BNC.
– Der Hochstapler – 2012-07-18T12:45:54.1831Tagging "Windows" since Mirc was mentioned (personally I use irssi+tmux+SSH in Linux for this). – Daniel Andersson – 2012-07-18T12:56:34.920
I wasn't necessarily referring to windows only, even though it is currently my client on my windows boxes. I'll take @OliverSalzburg's advice and look into a BNC setup. – scooz – 2012-07-18T13:27:32.123