Author: Mark
Date: Fri Mar 18 05:52:23 2005
New Revision: 2362
Modified:
trunk/ChangeLog
trunk/src/users.c
Log:
Add host vhost mask generation to core
Modified: trunk/ChangeLog
==============================================================================
--- trunk/ChangeLog (original)
+++ trunk/ChangeLog Fri Mar 18 05:52:23 2005
@@ -4,6 +4,7 @@
Fish (F), Mark (M), DeadNotBuried (D)
===============================================================================
* NeoStats * Version 3.0.a3-dev
+ - Add nick!user@host and nick!user@vhost mask generation to core. (M)
- DBA layer will now pass size of data fetched in FetchRows. (M)
- Add support to ircd layer for processing ERROR messages from the uplink. (M)
- Add optional SERVICE_HOST config entry to allow users to set a default host
Modified: trunk/src/users.c
==============================================================================
--- trunk/src/users.c (original)
+++ trunk/src/users.c Fri Mar 18 05:52:23 2005
@@ -132,6 +132,8 @@
}
strlcpy (u->user->hostname, host, MAXHOST);
strlcpy (u->user->vhost, host, MAXHOST);
+ ircsnprintf( u->user->userhostmask, USERHOSTLEN, "%s!%s@%s", nick, user, host );
+ strlcpy( u->user->uservhostmask, u->user->userhostmask, USERHOSTLEN );
strlcpy (u->user->username, user, MAXUSER);
strlcpy (u->info, realname, MAXREALNAME);
u->user->ulevel = -1;
@@ -467,6 +469,7 @@
dlog (DEBUG1, "Vhost %s", vhost);
if (u) {
strlcpy (u->user->vhost, vhost, MAXHOST);
+ ircsnprintf( u->user->uservhostmask, USERHOSTLEN, "%s!%s@%s", nick, u->user->username, vhost );
/* sethost on Unreal doesn't send +xt, but /umode +x sends +x
* so, we will never be 100% sure about +t
*/
@@ -629,6 +632,8 @@
strlcpy (u->user->vhost, host, MAXHOST);
strlcpy (u->user->username, user, MAXUSER);
strlcpy (u->info, "fake user", MAXREALNAME);
+ ircsnprintf( u->user->userhostmask, USERHOSTLEN, "%s!%s@%s", nick, user, host );
+ strlcpy( u->user->uservhostmask, u->user->userhostmask, USERHOSTLEN );
u->user->tslastmsg = me.now;
u->user->chans = list_create (MAXJOINCHANS);
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.