Go to file
Blair Bonnett c3b368a68a Add ability to reserve SIDs for certain users.
If you have a bot connected to the hub, and you want to add a user
command to interact with the bot via PM, you need to know its session ID
(SID). However, SIDs are assigned when the client first connects, prior
to the nickname being sent, and so we cannot just assign a certain SID
based on the nickname as part of the connection routine.

To overcome this, this commit adds the ability to reserve the first few
SIDs (at hub start time, when the SIDs are known) for certain nicknames.
The user manager then checks each time a user logs in to see if the
nickname matches a reserved one, and if so sets up an alias from the
reserved SID to the SID the user was given. This alias is only checked
for private messages (the ADC DMSG or EMSG commands) which are routed to
the real user. Any other commands are ignored as there should be no need
for such aliasing.

The list of nicknames to reserve SIDs for is read from a space-separated
list in the reserved_sids parameter of the config file. The reserved
users must also be registered users (i.e., given a password) -- if they
are not, the alias is not set up for them.
2012-08-06 23:58:57 +12:00
admin Cleanup after creating debian packages. 2009-03-24 23:16:09 +01:00
autotest Cleaned up command handling code, by splitting into multiple files. 2012-05-01 20:15:49 +02:00
debian Updated init script in debian package. 2012-05-08 23:40:16 +03:00
doc Add upstart script to run uHub as a service. 2012-07-29 16:22:38 +12:00
src Add ability to reserve SIDs for certain users. 2012-08-06 23:58:57 +12:00
thirdparty Added sqlite as a git submodule. 2011-12-28 18:08:11 +01:00
tools convert_to_sqlite.pl: Update to the latest SQL schema + be more Perlish 2012-05-14 19:06:11 +02:00
vs2010 Fix VS2010 project file - missing .c file. 2012-05-13 23:59:27 +02:00
.gitignore ignore files generated by dpkg-buildpackage 2012-04-19 02:54:21 +02:00
.gitmodules Added sqlite as a git submodule. 2011-12-28 18:08:11 +01:00
AUTHORS Added support for dynamic commands. 2011-12-09 10:29:50 +01:00
BSDmakefile kqueue() BSD fixes 2010-01-27 17:50:02 +01:00
BUGS Document new bugs strategies 2009-03-16 17:35:08 +01:00
ChangeLog Updated changelog. 2012-05-29 22:57:02 +02:00
COPYING First git commit. 2009-02-19 17:14:09 +01:00
COPYING.OpenSSL Fix bug #183 - Added proper OpenSSL license exception for the GPL. 2012-04-22 22:23:11 +02:00
GNUmakefile Add UCMD extension methods to plugin API. 2012-08-02 02:26:54 +12:00
README update client software link 2012-04-19 02:43:59 +02:00
TODO Add TODO file. Some modify example uhub.conf 2010-01-14 09:46:55 +03:00
version.h Updated the copyright to 2012 and git version display. 2012-01-04 11:08:07 +01:00

Welcome and thanks for downloading uHub, a high performance ADC p2p hub.

For the official documentation, bugs and other information, please visit:
http://www.uhub.org/

For a list of compatible ADC clients, see:
http://en.wikipedia.org/wiki/Advanced_Direct_Connect#Client_software