view example_config.xml @ 255:38dd27098fef

minor fix in _irc_event_handler, check source_nickname before giving it to Bridge.get_participant Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Wed, 10 Mar 2010 13:13:13 +0100
parents 64a0e9636ae6
children
line wrap: on
line source

<?xml version="1.0" ?>
<config>
	<bot jid='some_bot@example.net' password='do not forget to escape xml entities like &amp;' nickname='xib-bot-nickname' debug='true'>
		<!-- WARNING: do NOT set debug to "true" if you are sending the bot's stderr to a file, it logs every XMPP stanza and IRC event without controlling the size of the resulting file -->
		<admin jid='admin1@example.net' />
		<admin jid='admin2@example.net' />
		<bridge mode='normal' say_level='all'>
			<xmpp-room jid='dream-world@chat.example.com'/>
			<irc chan='#dream-world' server='irc.example.org' charsets='utf-8 iso8859_15'/>
				<!-- separate codecs by a space -->
				<!-- see <http://docs.python.org/library/codecs.html#standard-encodings> for a list of codecs -->
		</bridge>
		<bridge mode='minimal' say_level='nothing'>
			<xmpp-room jid='room@chat.example.com'/>
			<irc chan='#chan' server='irc.example.net' connection_interval='2'/> <!-- connection_interval is in seconds -->
		</bridge>
	</bot>
	<!-- WARNING: do NOT start two bots with the same JID or the same nickname -->
	<!-- WARNING: two bots connecting to the same XMPP MUC server and/or the same IRC server may conflict, it is better to use multiple bridges -->
	<!-- NOTICE: even if you use multiple bridges instead of multiple bots, conflicts may still appear if somebody else is running a bot on the same XMPP MUC server and/or the same IRC server -->
</config>