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?
2 Answers
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.

To change your nick as well is a little tricky - type in
/msg nickserv ghost username password
Then CTRL SHIFT u a
/nick username
As one line. This should do both commands one after another.
-
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. Jun 15, 2012 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) Jun 15, 2012 at 12:35
-
Hope it does then - I know someone else might be interested :) Jun 15, 2012 at 12:41
-
-
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. Jun 15, 2012 at 12:53
Here is a plugin to handle automatic ghosting and identification. Just put the *.py file in your xchat scripts folder ~/.xchat2/