Author: DNB
Date: Fri Jul 1 10:08:38 2005
New Revision: 2635
Modified:
trunk/ChangeLog
trunk/modules/limitserv/main.c
Log:
LimitServ: set minimum limit settable by LimitServ to Users + 1
LimitServ: fix paramter order being passed to ManageLimits
Modified: trunk/ChangeLog
==============================================================================
--- trunk/ChangeLog (original)
+++ trunk/ChangeLog Fri Jul 1 10:08:38 2005
@@ -4,6 +4,8 @@
Fish (F), Mark (M), DeadNotBuried (D)
===============================================================================
* NeoStats * Version 3.0.a3-dev
+ - LimitServ: set minimum limit settable by LimitServ to Users + 1 (D)
+ - LimitServ: fix paramter order being passed to ManageLimits (D)
- Move Config file over to confuse engine, and redo makeconf to work with
new config file format (F)
- Move Secure.irc-chat.net update code to core to allow OPSB to use it as
Modified: trunk/modules/limitserv/main.c
==============================================================================
--- trunk/modules/limitserv/main.c (original)
+++ trunk/modules/limitserv/main.c Fri Jul 1 10:08:38 2005
@@ -122,12 +122,12 @@
int limit;
limit = curlimit;
- if( limit < users )
- limit = users;
if( add )
limit++;
else
limit--;
+ if( limit <= users )
+ limit = ( users + 1 );
ircsnprintf( limitsize, 10, "%d", limit );
irc_cmode( ls_bot, name, "+l", limitsize );
}
@@ -399,7 +399,7 @@
/* Join channel if we are not a member */
if( joinchannels && !IsChannelMember( cmdparams->channel, ls_bot->u ) )
irc_join( ls_bot, db->name, "+o" );
- ManageLimit( cmdparams->channel->name, cmdparams->channel->limit, cmdparams->channel->users, 1 );
+ ManageLimit( cmdparams->channel->name, cmdparams->channel->users, cmdparams->channel->limit, 1 );
}
return NS_SUCCESS;
}
@@ -421,7 +421,7 @@
SET_SEGV_LOCATION();
db = (ls_channel *)hnode_find( qshash, cmdparams->channel->name );
if( db )
- ManageLimit( cmdparams->channel->name, cmdparams->channel->limit, cmdparams->channel->users, 0 );
+ ManageLimit( cmdparams->channel->name, cmdparams->channel->users, cmdparams->channel->limit, 0 );
return NS_SUCCESS;
}
@@ -445,4 +445,4 @@
PartChannels();
}
return NS_SUCCESS;
-}
\ No newline at end of file
+}
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.