User:NeoAmsterdam/Reconfigure XoIRC's defaults

From OLPC

< User:NeoAmsterdam
Revision as of 09:30, 4 September 2010 by NeoAmsterdam (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Stop hand.png WARNING:
The content of this section is considered
DEPRECATED and OBSOLETE
It is preserved for historical or documenting reasons.

Contents

Note

Instructions

Setting the Default Nickname

XoIRC's page states that "to make your default IRC nickname match your default XO nickname" you can apply a patch, but it appears (as of 2008-01-11) that the link to the patch is dead. Here's how to get around it:

  1. Open the Terminal activity
  2. Locate XoIRC.activity/ folder.
    I found it at ~/Activites/XoIRC.activity/, but it may be stored elsewhere on your XO.
  3. cd path to/XoIRC.activity/purk/
  4. emacs irc.py
  5. Look for a line that reads nicks = [user_nick]
    I found it on line 71.
  6. Insert the following on the line immediately afterwards: nicks = [your preferred nickname]
  7. Save the file and exit your editor.
    XoIRC will now use your preferred nickname.

Note that your IRC server may complain about your chosen nickname if the nickname had been registered or is in use by someone else. This workaround does not address that potential problem.

Setting the Default IRC Server and Channel

XoIRC will connect to irc.freenode.net by default. Even though XoIRC is based on urk, XoIRC seems to have disabled support for the urk.conf configuration file. Moreover, urk's documentation states that its settings can be altered with /pyeval statements in the IRC text input window. This also seems to have been disabled. Here's how to get around this limitation:

  1. Open the Terminal activity
  2. Locate XoIRC.activity/ folder.
    I found it at ~/Activites/XoIRC.activity/, but it may be stored elsewhere on your XO.
  3. cd path to/XoIRC.activity/
  4. emacs xoircactivity.py
  5. Look for a line that reads client.join_server('irc.freenode.net')
    I found it on line 37.
  6. Change the contents of the line to read client.join_server('your preferred IRC server')
  7. Look for a line that reads client.add_channel('#olpc-help')
  8. Change the contents of the line to read client.join_server('#channel on server') to automatically join on startup.
    I have not tested XoIRC without this line, but I suspect that commenting out this line (by beginning the line with a #) will trip up XoIRC and cause it to crash.
  9. Save the file and exit your editor.
    XoIRC will now use your preferred IRC server and autojoin you to your preferred channel.

You can tell XoIRC to autojoin other channels from within the program by right-clicking a channel's tab and selecting Autojoin

Automating NickServe/Identifications

I haven't figured that out yet. You will have to /msg NickServ manually.
Personal tools
  • Log in
  • Login with OpenID
About OLPC
About the laptop
About the tablet
Projects
OLPC wiki
Toolbox