Cleanup quotecmd() a little bit. Remove a set but unused variable.

Kill commented out code that normally prevents some commands from
being quoted.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@490 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Tim Cava
2014-03-01 20:02:16 +00:00
parent 3138017406
commit 04e898bb57

View File

@@ -3402,35 +3402,13 @@ BUILT_IN_COMMAND(quotecmd)
if (args && *args)
{
char *comm = new_next_arg(args, &args);
protocol_command *p;
int cnt;
int loc;
upper(comm);
p = (protocol_command *)find_fixed_array_item(
(void *)rfc1459, sizeof(protocol_command),
find_fixed_array_item((void *)rfc1459, sizeof(protocol_command),
num_protocol_cmds + 1, comm, &cnt, &loc);
/*
* If theyre dispatching some protocol commands we
* dont know about, then let them, without complaint.
*/
#if 0
if (cnt < 0 && (rfc1459[loc].flags & PROTO_NOQUOTE))
{
yell("Doing /QUOTE %s is not permitted. Use the client's built in command instead.", comm);
from_server = old_from_server;
return;
}
#endif
/*
* If we know its going to cause a problem in the
* future, whine about it.
*/
#if 0
if (cnt < 0 && (rfc1459[loc].flags & PROTO_DEPREC))
yell("Doing /QUOTE %s is discouraged because it will break the client in the future. Use the client's built in command instead.", comm);
#endif
if (all_servers)
{
int i;