Author: Mark
Date: Sat Apr 16 03:57:42 2005
New Revision: 2514
Modified:
trunk/ChangeLog
trunk/modules/statserv/server.c
trunk/src/services.c
Log:
LEVEL command now resets user level
Modified: trunk/ChangeLog
==============================================================================
--- trunk/ChangeLog (original)
+++ trunk/ChangeLog Sat Apr 16 03:57:42 2005
@@ -4,6 +4,8 @@
Fish (F), Mark (M), DeadNotBuried (D)
===============================================================================
* NeoStats * Version 3.0.a3-dev
+ - LEVEL command now resets user level so that users can cause NeoStats to
+ recheck their access rights after any settings changes. (M).
- Prevent ability to disable debug mode if DEBUG enabled to avoid all the
overrides necessary in code. (M)
- StatServ: Add FLATMAP option to prevent display of network layout in MAP
Modified: trunk/modules/statserv/server.c
==============================================================================
--- trunk/modules/statserv/server.c (original)
+++ trunk/modules/statserv/server.c Sat Apr 16 03:57:42 2005
@@ -292,7 +292,7 @@
}
node = hash_lookup(serverstathash, cmdparams->av[1]);
if (node) {
- ss = (serverstat *ss)hnode_get( node );
+ ss = (serverstat *)hnode_get( node );
hash_delete (serverstathash, node);
hnode_destroy (node);
ns_free (ss);
Modified: trunk/src/services.c
==============================================================================
--- trunk/src/services.c (original)
+++ trunk/src/services.c Sat Apr 16 03:57:42 2005
@@ -414,10 +414,14 @@
{
SET_SEGV_LOCATION();
if( cmdparams->ac < 1 ) {
+ /* Force recalc user level */
+ cmdparams->source->user->ulevel = -1;
irc_prefmsg( ns_botptr, cmdparams->source, __( "Your level is %d", cmdparams->source ), UserLevel( cmdparams->source ) );
} else {
Client * otheruser;
otheruser = FindUser( cmdparams->av[0] );
+ /* Force recalc user level */
+ otheruser->user->ulevel = -1;
if( !otheruser ) {
irc_prefmsg( ns_botptr, cmdparams->source, __( "User %s not found", cmdparams->source ), cmdparams->av[0] );
return NS_FAILURE;
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.