mirror of
https://github.com/pissnet/pissircd.git
synced 2025-07-31 15:32:26 +01:00
Fixed a umode system error with unknown modes
This commit is contained in:
parent
164869dca5
commit
5a0d13d9fa
2 changed files with 8 additions and 7 deletions
4
Changes
4
Changes
|
@ -1154,9 +1154,11 @@ v- Fixed some bugreport stuff
|
|||
- Fix for /version crash, reported by RaYmAn
|
||||
- Made all functions use new-style parameter lists
|
||||
- Moved set::socks::ban-time to set::scan::bantime, and remove the other set::socks::* (not used)
|
||||
also added set::scan::timeout to specify how long the scanner should wait for a response before giving up
|
||||
also added set::scan::timeout to specify how long the scanner should wait for a response
|
||||
before giving up
|
||||
- Added HOOKTYPE_STATS - allows modules to respond to certain /stats (so far only S is supported)
|
||||
- Changed some m_ functions into CMD_FUNC(m_*)
|
||||
- Fixed a win32 bug with the scanner code changes
|
||||
- Added a win32 menu item that lets you view log files
|
||||
- Documented the net set::scan::* directives in doc/conf.doc
|
||||
- Fixed a bug in the new usermode system that caused odd Unknown mode flag reporting.
|
||||
|
|
11
src/s_user.c
11
src/s_user.c
|
@ -2086,7 +2086,6 @@ void set_snomask(aClient *sptr, char *snomask) {
|
|||
*/
|
||||
CMD_FUNC(m_umode)
|
||||
{
|
||||
int flag = 0;
|
||||
int i;
|
||||
char **p, *m;
|
||||
aClient *acptr;
|
||||
|
@ -2198,11 +2197,11 @@ CMD_FUNC(m_umode)
|
|||
sptr->umodes &= ~Usermode_Table[i].mode;
|
||||
break;
|
||||
}
|
||||
if (flag == 0 && MyConnect(sptr) && !rpterror)
|
||||
{
|
||||
sendto_one(sptr,
|
||||
err_str(ERR_UMODEUNKNOWNFLAG),
|
||||
me.name, parv[0]);
|
||||
else if (i == Usermode_highest && MyConnect(sptr) && !rpterror)
|
||||
{
|
||||
sendto_one(sptr,
|
||||
err_str(ERR_UMODEUNKNOWNFLAG),
|
||||
me.name, parv[0]);
|
||||
rpterror = 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue