Add new version information for checking modules and the core are compatible - with forward port protection
This commit is contained in:
parent
3497661394
commit
1010f6c055
2 changed files with 7 additions and 0 deletions
|
@ -4,6 +4,7 @@ Open Proxy Scanning Bot Module for NeoStats Changelog.
|
|||
- Fixed init_bot code - now uses services_bot_modes not hard coded ones (M)
|
||||
- We now try to read nick, user, host and realname so these can be configured more
|
||||
easily (M)
|
||||
- SET interface for nick/user/host/realname added (M)
|
||||
|
||||
* Version 2.1 * 24/01/2004 * Fish (F)
|
||||
- Sync up libopm with blitzed version to fix a Socks 5 bug (F)
|
||||
|
|
6
opsb.c
6
opsb.c
|
@ -1286,6 +1286,12 @@ void LoadConfig(void)
|
|||
|
||||
int __ModInit(int modnum, int apiver)
|
||||
{
|
||||
#ifdef NS_ERR_VERSION /* Forward port version checks */
|
||||
/* Check that our compiled version if compatible with the calling version of NeoStats */
|
||||
if( ircstrncasecmp (me.version, NEOSTATS_VERSION, VERSIONSIZE) !=0) {
|
||||
return NS_ERR_VERSION;
|
||||
}
|
||||
#endif
|
||||
strlcpy(s_opsb, "opsb", MAXNICK);
|
||||
|
||||
/* we have to be careful here. Currently, we have 7 sockets that get opened per connection. Soooo.
|
||||
|
|
Reference in a new issue