allow SERVICEROOT to check against IP Address as well as Host
This commit is contained in:
parent
77211e78d7
commit
1e81c71dc1
2 changed files with 3 additions and 1 deletions
|
@ -4,6 +4,7 @@ Anything we add/remove/fix/change is in here (even our rants)
|
||||||
Fish (F), Mark (M), DeadNotBuried (D)
|
Fish (F), Mark (M), DeadNotBuried (D)
|
||||||
===============================================================================
|
===============================================================================
|
||||||
* NeoStats * Version 3.0.a3-dev
|
* NeoStats * Version 3.0.a3-dev
|
||||||
|
- allow SERVICEROOT to check against IP Address as well as Host (D)
|
||||||
- check if exclusions are already included in list before adding (D)
|
- check if exclusions are already included in list before adding (D)
|
||||||
- attempt to find bot unused nickname when both nick and altnick in use (D)
|
- attempt to find bot unused nickname when both nick and altnick in use (D)
|
||||||
- QuoteServ: add option to use global excludes (D)
|
- QuoteServ: add option to use global excludes (D)
|
||||||
|
|
|
@ -65,7 +65,8 @@ static int IsServiceRoot( Client *u )
|
||||||
/* Test client nick!user@host against the configured service root */
|
/* Test client nick!user@host against the configured service root */
|
||||||
if( ( match( nsconfig.rootuser.nick, u->name ) ) &&
|
if( ( match( nsconfig.rootuser.nick, u->name ) ) &&
|
||||||
( match( nsconfig.rootuser.user, u->user->username ) ) &&
|
( match( nsconfig.rootuser.user, u->user->username ) ) &&
|
||||||
( match( nsconfig.rootuser.host, u->user->hostname ) ) ) {
|
( match( nsconfig.rootuser.host, u->user->hostname ) ||
|
||||||
|
match( nsconfig.rootuser.host, u->hostip ) ) ) {
|
||||||
return NS_TRUE;
|
return NS_TRUE;
|
||||||
}
|
}
|
||||||
return NS_FALSE;
|
return NS_FALSE;
|
||||||
|
|
Reference in a new issue