Remove obsolete Chatnet 310 numeric support (WANT_CHATNET)
Chatnet doesn't use the odd 310 numeric support anymore, it now uses 310 for the same WHOIS_HELPFUL as Dalnet. They apparently use a pretty bog-standard Unreal ircd now.
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
[Changes 1.2.2]
|
[Changes 1.2.2]
|
||||||
|
|
||||||
|
* Remove obsolete Chatnet 310 numeric support (WANT_CHATNET). (caf)
|
||||||
|
|
||||||
* Rework the lag check to make it simpler and more reliable. This adds
|
* Rework the lag check to make it simpler and more reliable. This adds
|
||||||
a /set LAG_CHECK_INTERVAL to control the frequency of lag checks. (caf)
|
a /set LAG_CHECK_INTERVAL to control the frequency of lag checks. (caf)
|
||||||
|
|
||||||
|
|||||||
@@ -195,7 +195,6 @@ Configure compile_default[] = {
|
|||||||
{ "Mirc resume support"," Support Mirc\'s Broken resume","MIRC_BROKEN_DCC_RESUME", ON, BOOL_TYPE, NULL},
|
{ "Mirc resume support"," Support Mirc\'s Broken resume","MIRC_BROKEN_DCC_RESUME", ON, BOOL_TYPE, NULL},
|
||||||
{ "Mode Compression", "Code for performing mode compression on mass mode changes", "COMPRESS_MODES", ON, BOOL_TYPE, NULL},
|
{ "Mode Compression", "Code for performing mode compression on mass mode changes", "COMPRESS_MODES", ON, BOOL_TYPE, NULL},
|
||||||
{ "MAX # of urls in list", "Max Number of URLS to save in memory", "DEFAULT_MAX_URLS", 30, INT_TYPE, edit_dir },
|
{ "MAX # of urls in list", "Max Number of URLS to save in memory", "DEFAULT_MAX_URLS", 30, INT_TYPE, edit_dir },
|
||||||
{ "ChatNet Support", "Support chatnet\'s numeric 310", "WANT_CHATNET", OFF,BOOL_TYPE, NULL},
|
|
||||||
{ "Want Userlist", "", "WANT_USERLIST", ON, BOOL_TYPE, NULL },
|
{ "Want Userlist", "", "WANT_USERLIST", ON, BOOL_TYPE, NULL },
|
||||||
{ NULL, NULL, NULL, 0, 0, NULL }
|
{ NULL, NULL, NULL, 0, 0, NULL }
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -645,10 +645,6 @@
|
|||||||
#define DEFAULT_IDENT_HACK ".noident"
|
#define DEFAULT_IDENT_HACK ".noident"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(WANT_CHATNET)
|
|
||||||
#undef WANT_CHATNET /* define just for codelogic */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#undef PARANOID /* #define this if your paranoid about dcc hijacking */
|
#undef PARANOID /* #define this if your paranoid about dcc hijacking */
|
||||||
|
|
||||||
/* new epic stuff */
|
/* new epic stuff */
|
||||||
|
|||||||
@@ -698,54 +698,6 @@ void numbered_command(char *from, int comm, char **ArgList)
|
|||||||
put_it("%s", convert_output_format(fget_string_var(FORMAT_WHOIS_SERVICE_FSET),"%s %s", ArgList[0], " is a Services Administrator"));
|
put_it("%s", convert_output_format(fget_string_var(FORMAT_WHOIS_SERVICE_FSET),"%s %s", ArgList[0], " is a Services Administrator"));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#ifdef WANT_CHATNET
|
|
||||||
case 310: /* RPL_WHOISUSER_OPER [or something] 310 on chatnet .. fixed. =] */
|
|
||||||
{
|
|
||||||
PasteArgs(ArgList, 7);
|
|
||||||
reset_display_target();
|
|
||||||
if(do_hook(current_numeric, "%s %s %s %s %s %s %s", ArgList[0],
|
|
||||||
ArgList[1], ArgList[2], ArgList[3], ArgList[4], ArgList[5], ArgList[6])) {
|
|
||||||
char *host = NULL;
|
|
||||||
char *p;
|
|
||||||
char *ident = NULL;
|
|
||||||
char *userhost = NULL;
|
|
||||||
#ifdef WANT_USERLIST
|
|
||||||
UserList *tmp = NULL;
|
|
||||||
ShitList *tmp1 = NULL;
|
|
||||||
#endif
|
|
||||||
/* routine for getting ident and host
|
|
||||||
* by-tor really wrote this little routine,
|
|
||||||
* something else he did for me, thanks =]
|
|
||||||
*/
|
|
||||||
if ((p = (char *)strchr(ArgList[2], '@'))) {
|
|
||||||
*p++ = '\0';
|
|
||||||
ident = LOCAL_COPY(ArgList[2]);
|
|
||||||
for(;*p == ' ';)
|
|
||||||
p++;
|
|
||||||
host = p;
|
|
||||||
if ((p = (char *)strchr(p, '\n')))
|
|
||||||
*p = '\0';
|
|
||||||
p = host;
|
|
||||||
host = LOCAL_COPY(p);
|
|
||||||
}
|
|
||||||
|
|
||||||
put_it("%s", convert_output_format(fget_string_var(FORMAT_WHOIS_HEADER_FSET), NULL));
|
|
||||||
put_it("%s", convert_output_format(fget_string_var(FORMAT_WHOIS_NICK_FSET),"%s %s %s %s", ArgList[0], ident, host, country(host)));
|
|
||||||
put_it("%s", convert_output_format(fget_string_var(FORMAT_WHOIS_NAME_FSET),"%s %s", ArgList[4], ArgList[5]));
|
|
||||||
malloc_sprintf(&userhost, "%s@%s", ident, host);
|
|
||||||
#ifdef WANT_USERLIST
|
|
||||||
if((tmp=lookup_userlevelc("*", userhost, "*", NULL)))
|
|
||||||
put_it("%s", convert_output_format(fget_string_var(FORMAT_WHOIS_FRIEND_FSET), "%s %s", convert_flags_to_str(tmp->flags), tmp->host));
|
|
||||||
if((tmp1=nickinshit(ArgList[0], userhost)))
|
|
||||||
put_it("%s", convert_output_format(fget_string_var(FORMAT_WHOIS_SHIT_FSET),"%d %s %s %s", tmp1->level, tmp1->channels, tmp1->filter, tmp1->reason));
|
|
||||||
if(tmp||tmp1)
|
|
||||||
put_it("%s", convert_output_format(fget_string_var(FORMAT_WHOIS_CHANNELS_FSET), "%s %s", tmp?"Allowed:":"Not-Allowed:", tmp?tmp->channels:tmp1->channels));
|
|
||||||
#endif
|
|
||||||
new_free(&userhost);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
case 310: /* WHOIS_HELPFUL */
|
case 310: /* WHOIS_HELPFUL */
|
||||||
{
|
{
|
||||||
if (do_hook(current_numeric, "%s %s %s", from, ArgList[0], ArgList[1]))
|
if (do_hook(current_numeric, "%s %s %s", from, ArgList[0], ArgList[1]))
|
||||||
@@ -753,7 +705,6 @@ void numbered_command(char *from, int comm, char **ArgList)
|
|||||||
break;
|
break;
|
||||||
/* the 4 above are dalnet numerics */
|
/* the 4 above are dalnet numerics */
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
case 311: /* #define RPL_WHOISUSER 311 */
|
case 311: /* #define RPL_WHOISUSER 311 */
|
||||||
{
|
{
|
||||||
char *host = ArgList[2];
|
char *host = ArgList[2];
|
||||||
|
|||||||
Reference in New Issue
Block a user