User:NeoAmsterdam/Reconfigure XoIRC's defaults: Difference between revisions

From OLPC
Jump to navigation Jump to search
mNo edit summary
(Self-evident)
 
Line 1: Line 1:
<div style="float: right;">__TOC__</div>
{{Deprecated}}<div style="float: right;">__TOC__</div>
= Note =
= Note =
* The [[XoIRC]] activity has been surpassed by [http://activities.sugarlabs.org/en-US/sugar/addon/4029 IRC 5].
* The [[XoIRC]] activity has been surpassed by [http://activities.sugarlabs.org/en-US/sugar/addon/4029 IRC 5].

Latest revision as of 09:30, 4 September 2010

Stop hand.png WARNING:
The content of this section is considered
DEPRECATED and OBSOLETE
It is preserved for historical or documenting reasons.

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/Key enter.jpg
  4. emacs irc.pyKey enter.jpg
  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]Key enter.jpg
  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/Key enter.jpg
  4. emacs xoircactivity.pyKey enter.jpg
  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.