Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My provider forces a re-connect all 24h, which breaks my XChat session. Though the connection usually is re-established within seconds, due to the changed IP the "old session" is invalidated. XChat automatically joins the network(s), but then my nick gets refused as it "is already in use". I can manually solve that by "/nickserv ghost MyUser MyPass" -- but I could not find any place to configure XChat to do that automatically. Is that possible, and if so, how?

share|improve this question
up vote 5 down vote accepted

This is based off my SU answer to a similar question

Assuming all versions work the same, you can put /msg nickserv ghost name password as a connect command under server settings for freenode.

enter image description here

To change your nick as well is a little tricky - type in

/msg nickserv ghost username password


/nick username

As one line. This should do both commands one after another.

share|improve this answer
The OP is looking for an automatic thing, like a plugin to do the job when they are not there. Funnily enough that was mentioned in the SU answer. – 23 93 26 35 19 57 3 89 Jun 15 '12 at 12:31
I do seem to recall it did so during my testing, i should be no different from if he pinged out and reconnected (where this works) – Journeyman Geek Jun 15 '12 at 12:35
Hope it does then - I know someone else might be interested :) – 23 93 26 35 19 57 3 89 Jun 15 '12 at 12:41
If and only if its in the connect commands will it work. :) – Thomas Ward Jun 15 '12 at 12:50
Which is what the answer says. Added a screenshot for clarity. The trick is really in getting multiple connect commands to ghost and change name at once. – Journeyman Geek Jun 15 '12 at 12:53

Here is a plugin to handle automatic ghosting and identification. Just put the *.py file in your xchat scripts folder ~/.xchat2/

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.