Download Latest Version cppRelay1.0.zip (10.7 kB)
Email in envelope

Get an email when there's a new version of cppRelay

Home / 1.0 Files
Name Modified Size InfoDownloads / Week
Parent folder
readme.txt 2011-01-02 2.3 kB
bot.hpp 2010-10-03 10.1 kB
main.cpp 2010-10-03 39.4 kB
Totals: 3 Items   51.7 kB 0
Written by Jan F.,
janrst@gmx.de.de

http://cpprelay.sourceforge.net

A relay bot to connect channels across networks. Optimized for inter-network connections, but inter-channel on the same network is possible by making it log in twice.

Brief intro to cppRelay...

Compile with g++ and link library pthread: "g++ main.cpp -lpthread -orelaybot" (gives you ./relaybot)


The main config File is called "channels.list". If it doesnt exist, create it.
The first line in the config file is the internal name of the first network you want the relay to connect with. This is usually something like "undernet" or "freenode". The second line is the actual irc-server the bot needs to connect to ("SantaAna.ca.us.undernet.org" i.e.), the third line is the nick of the Bot on that network ("CppRelayBot"), the forth line is the name of the channel. After that, it repeats for every channel that you want the bot to relay.

ToDo: A Server list for every Network would be neat, and Multiple Channels per Network also needs to get implemented. Currently, you can link 2 Channels on the same Network only by making the bot join twice.

For every IRC Network, theres 2 files that are sent as text to the server. If you gave your Network the internal name "undernet", then those files are "undernet.prejoin" and "undernet.postjoin". The prejoin file gets sent to the server to i.e. log into a username. It should be somewhat like that:

"PRIVMSG x@channels.undernet.org :login cpprelay <password>
MODE psybot +x"

This msg'es the channel service a login to a username and then activates the hidden host (on undernet in this example).

The postjoin file is the same, only that it gets sent _after_ the bot has joined his channel on the given network (to get op from a bot on that channel, i.e.).

ToDo: Implement the trading of the internal ban list of the bot to the banlist of the channel (yet, banning someone only silences him/her on the relay).

Other config files:
bans.list <- do not edit on your own, just set the bans on irc
ops.list <- the list of operators (ops can set bans
owners.list <- the list of owners (owners can set ops and bans)

for all lists, a nick!identd@host.domain mask is used, the "*" Wildcard is yet the only one that is allowed.

ToDo: Implement the "?" Wildcard
Source: readme.txt, updated 2011-01-02