﻿<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.ucis.nl/index.php?action=history&amp;feed=atom&amp;title=IRCRelay</id>
	<title>IRCRelay - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.ucis.nl/index.php?action=history&amp;feed=atom&amp;title=IRCRelay"/>
	<link rel="alternate" type="text/html" href="http://wiki.ucis.nl/index.php?title=IRCRelay&amp;action=history"/>
	<updated>2026-05-14T08:07:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>http://wiki.ucis.nl/index.php?title=IRCRelay&amp;diff=90&amp;oldid=prev</id>
		<title>Admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://wiki.ucis.nl/index.php?title=IRCRelay&amp;diff=90&amp;oldid=prev"/>
		<updated>2022-11-09T14:49:53Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:49, 9 November 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>http://wiki.ucis.nl/index.php?title=IRCRelay&amp;diff=89&amp;oldid=prev</id>
		<title>Admin: /* Configuration */</title>
		<link rel="alternate" type="text/html" href="http://wiki.ucis.nl/index.php?title=IRCRelay&amp;diff=89&amp;oldid=prev"/>
		<updated>2010-04-07T20:19:17Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Configuration&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== UCIS IRC Relay ==&lt;br /&gt;
This software links (multiple) channels on (different) IRC networks together by passing messages between them. It is possible to link channels among different networks, as well as to link channels on the same network. Multiple channels (more than two) can be linked together. It is even possible to link in a private conversation with one or more predefined individuals/nicknames.&lt;br /&gt;
&lt;br /&gt;
The relay can be configured through a simple configuration file, as well as at run-time through the use of commands via the IRC session. Run-time changes are NOT saved!&lt;br /&gt;
&lt;br /&gt;
== License ==&lt;br /&gt;
The software is released under the terms of the BSD license. If you like or use the software, you are welcome to let me know by sending an e-mail (see below) and you may even send me some money (see below).&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
Make sure to configure the software first (see below). Then just run the main program file ''relay.php'', using either ''./relay.php'', ''php relay.php'' or a supervisor daemon like daemontools, runit or supervisor. Make sure that the suprtvisor daemon sets the working directory appropriately so the program can find it's configuration file.&lt;br /&gt;
&lt;br /&gt;
== Contact ==&lt;br /&gt;
* By e-mail: [mailto:ivo@ucis.nl Ivo@UCIS.nl]&lt;br /&gt;
* On IRC: Ivo or UFO in #Chat on [irc://irc.kwaaknet.org/chat irc.kwaaknet.org]&lt;br /&gt;
* Paypal: Ivo@UFO-Net.nl - thank you very much!&lt;br /&gt;
* MSN Messenger: Ivo@UFO-Net.nl&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
The configuration data is contained in one simple php file, ''config.php'' (see below for an example configuration). The configuration consists of a few nested arrays:&lt;br /&gt;
* $config - associative array containing all configuration data&lt;br /&gt;
** $config['password'] - administrator login password, leave out or set to NULL to disable run-time administration&lt;br /&gt;
** $config['networks'] - associative array listing all IRC networks to connect to&lt;br /&gt;
*** $config['networks'][$key] - associated array listing the configuration for the network with short name $key&lt;br /&gt;
**** $config['networks'][$key]['nick'] - nickname to use on this IRC network&lt;br /&gt;
**** $config['networks'][$key]['server'] - IRC server address, either a domain name or IP address&lt;br /&gt;
**** $config['networks'][$key]['port'] - IRC server port number (optional, defaults to 6667)&lt;br /&gt;
**** $config['networks'][$key]['name'] - long name for the network (optional)&lt;br /&gt;
**** $config['networks'][$key]['ident'] - username/ident (optional)&lt;br /&gt;
**** $config['networks'][$key]['realname'] - real name (optional)&lt;br /&gt;
**** $config['networks'][$key]['ipv6'] - set to true to connect using IPv6 (optional, defaults to false)&lt;br /&gt;
**** $config['networks'][$key]['debug'] - set to true to enable debugging for this network (optional, defaults to false)&lt;br /&gt;
**** $config['networks'][$key]['channels'] - yet another associative array containing the channel configuration for this network&lt;br /&gt;
***** $config['networks'][$key]['channels'][$name] - associative array containing the configuration for a channel named $channel (eg #chat or an individual nickname)&lt;br /&gt;
****** $config['networks'][$key]['channels'][$name]['link'] - indicates which channels to link to, all channels having the same link property are connected&lt;br /&gt;
****** $config['networks'][$key]['channels'][$name]['display'] - short text to prefix messages originating from this channel (optional)&lt;br /&gt;
&lt;br /&gt;
== Source code ==&lt;br /&gt;
=== relay.php ===&lt;br /&gt;
You can find the main program file here: [[IRCRelay/Sourcecode]]. Just copy-paste the code into your favourite text editor and save it as a .php file.&lt;br /&gt;
&lt;br /&gt;
=== config.php (example) ===&lt;br /&gt;
This is an example configuration file. Make sure to change it according to your needs.&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;?php&lt;br /&gt;
$config = array(&lt;br /&gt;
        'password' =&amp;gt; NULL,&lt;br /&gt;
        'networks' =&amp;gt; array(&lt;br /&gt;
'KN' =&amp;gt; array(&lt;br /&gt;
        'name' =&amp;gt; 'Kwaaknet.org',&lt;br /&gt;
        'server' =&amp;gt; 'irc.kwaaknet.org',&lt;br /&gt;
        'port' =&amp;gt; 6667,&lt;br /&gt;
        'nick' =&amp;gt; 'IRCRelay',&lt;br /&gt;
        'channels' =&amp;gt; array(&lt;br /&gt;
                '#ircrelay' =&amp;gt; array('display' =&amp;gt; 'KN', 'link' =&amp;gt; 'main'),&lt;br /&gt;
        ),&lt;br /&gt;
), 'FN' =&amp;gt; array(&lt;br /&gt;
        'name' =&amp;gt; 'freenode',&lt;br /&gt;
        'server' =&amp;gt; 'irc.freenode.net',&lt;br /&gt;
        'nick' =&amp;gt; 'IRCRelay',&lt;br /&gt;
        'channels' =&amp;gt; array(&lt;br /&gt;
                '#ircrelay' =&amp;gt; array('display' =&amp;gt; 'AN', 'link' =&amp;gt; 'main'),&lt;br /&gt;
        ),&lt;br /&gt;
),&lt;br /&gt;
        ),&lt;br /&gt;
);&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>