Remove XLINK CTCP reply handler - it's not used for the botlink

functionality.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@320 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2013-08-14 13:34:04 +00:00
parent 4a25f5462f
commit 1cfaf1349c
2 changed files with 3 additions and 25 deletions

View File

@@ -1,5 +1,7 @@
[Changes 1.2c01]
* Remove unused XLINK CTCP reply handler. (caf)
* Ensure add_socketread() doesn't leak file descriptors. (caf)
* Fix listing bans on local channels (/BANS &channel). (flashback)

View File

@@ -82,7 +82,6 @@ static char *do_whoami (CtcpEntry *, char *, char *, char *);
static char *do_ctcpops (CtcpEntry *, char *, char *, char *);
static char *do_ctcpunban (CtcpEntry *, char *, char *, char *);
static char *do_botlink (CtcpEntry *, char *, char *, char *);
static char *do_botlink_rep (CtcpEntry *, char *, char *, char *);
static char *do_ctcp_uptime (CtcpEntry *, char *, char *, char *);
static char *do_ctcpident (CtcpEntry *, char *, char *, char *);
@@ -158,7 +157,7 @@ static CtcpEntry ctcp_cmd[] =
do_ctcpident, NULL },
{ "XLINK", CTCP_BOTLINK, CTCP_SPECIAL,
"x-filez rule",
do_botlink, do_botlink_rep },
do_botlink, NULL },
{ "UPTIME", CTCP_UPTIME, CTCP_SPECIAL,
"my uptime",
@@ -366,29 +365,6 @@ char *nick = NULL, *password = NULL, *port = NULL;
return NULL;
}
CTCP_HANDLER(do_botlink_rep)
{
#ifndef BITCHX_LITE
char *type, *description, *inetaddr, *port, *extra_flags;
if (my_stricmp(to, get_server_nickname(from_server)))
return NULL;
if (!(type = next_arg(cmd, &cmd)) ||
!(description = next_arg(cmd, &cmd)) ||
!(inetaddr = next_arg(cmd, &cmd)) ||
!(port = next_arg(cmd, &cmd)))
return NULL;
extra_flags = next_arg(cmd, &cmd);
set_int_var(BOT_MODE_VAR, 1);
register_dcc_type(from, type, description, inetaddr, port, NULL, extra_flags, FromUserHost, NULL);
#endif
return NULL;
}
CTCP_HANDLER(do_cinvite)
{
#ifdef WANT_USERLIST