2006-11-9
Nick Patch for UnrealIRCD!
Yesterday I patched Unrealircd to disable the Nick-Command, because I have a MySQL Usermanagement and I want to clearly identify the irc users. There was no other solution or at least this was the result of reading the unrealircd forum.
The patch is quite simple.
The Unrealircd/src/modules/m_nick.c File will get a Nick Command Handle and a HookConnect event handler which will be called right after the connection and then Delete the Nick Command.
-
Command *CMD_NICK;
-
static int cb_connect(aClient *);
-
static Hook *HookConnect;
-
-
CMD_NICK = CommandAdd(modinfo->handle, MSG_NICK, TOK_NICK, m_nick, MAXPARA, M_USER|M_SERVER|M_UNREGISTERED);
-
HookConnect = HookAddEx(modinfo->handle, HOOKTYPE_LOCAL_CONNECT, cb_connect);
-
-
static int cb_connect(aClient *sptr)
-
{
-
CommandDel(CMD_NICK);
-
return 0;
-
}
You can download the patch here! I must add that I really like the UnrealIRCD Api. It`s very clear and well organized!
1 Comment
-
Is there any way to turn this patch into a dll file that the windows version of unreal can use ? I also need that “nonickchange” option, as I use a cgi program to extract the usernames from their cookies, and I want to keep the nicks as is after they are signed in.

