mirror of
https://github.com/hexchat/hexchat.git
synced 2024-11-09 20:52:45 +01:00
Remove wallchan command
This command doesn't have many legitimate, non-spam applications and is easily confused for the similarly named 'wallops'. Moreover, many netowrks now automatically punish or drop users who message many channels at the same time, rendering the command mostly useless. It also is too easy to tab-complete 'wall' into 'wallchan' when you expect 'wallops' to come up first, which can lead to two very different functions. If this is to be reintroduced it should be named something with less similarity to 'wallops' or 'wallchops'.
This commit is contained in:
parent
3ebb2c5eec
commit
d07e8a8ab2
@ -3881,34 +3881,6 @@ cmd_wallchop (struct session *sess, char *tbuf, char *word[],
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
|
||||||
cmd_wallchan (struct session *sess, char *tbuf, char *word[],
|
|
||||||
char *word_eol[])
|
|
||||||
{
|
|
||||||
GSList *list;
|
|
||||||
|
|
||||||
if (*word_eol[2])
|
|
||||||
{
|
|
||||||
list = sess_list;
|
|
||||||
while (list)
|
|
||||||
{
|
|
||||||
sess = list->data;
|
|
||||||
if (sess->type == SESS_CHANNEL)
|
|
||||||
{
|
|
||||||
message_tags_data no_tags = MESSAGE_TAGS_DATA_INIT;
|
|
||||||
|
|
||||||
inbound_chanmsg (sess->server, NULL, sess->channel,
|
|
||||||
sess->server->nick, word_eol[2], TRUE, FALSE,
|
|
||||||
&no_tags);
|
|
||||||
sess->server->p_message (sess->server, sess->channel, word_eol[2]);
|
|
||||||
}
|
|
||||||
list = list->next;
|
|
||||||
}
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
cmd_hop (struct session *sess, char *tbuf, char *word[], char *word_eol[])
|
cmd_hop (struct session *sess, char *tbuf, char *word[], char *word_eol[])
|
||||||
{
|
{
|
||||||
@ -4147,8 +4119,6 @@ const struct commands xc_cmds[] = {
|
|||||||
{"USERLIST", cmd_userlist, 1, 1, 1, 0},
|
{"USERLIST", cmd_userlist, 1, 1, 1, 0},
|
||||||
{"VOICE", cmd_voice, 1, 1, 1,
|
{"VOICE", cmd_voice, 1, 1, 1,
|
||||||
N_("VOICE <nick>, gives voice status to someone (needs chanop)")},
|
N_("VOICE <nick>, gives voice status to someone (needs chanop)")},
|
||||||
{"WALLCHAN", cmd_wallchan, 1, 1, 1,
|
|
||||||
N_("WALLCHAN <message>, writes the message to all channels")},
|
|
||||||
{"WALLCHOP", cmd_wallchop, 1, 1, 1,
|
{"WALLCHOP", cmd_wallchop, 1, 1, 1,
|
||||||
N_("WALLCHOP <message>, sends the message to all chanops on the current channel")},
|
N_("WALLCHOP <message>, sends the message to all chanops on the current channel")},
|
||||||
{0, 0, 0, 0, 0, 0}
|
{0, 0, 0, 0, 0, 0}
|
||||||
|
Loading…
Reference in New Issue
Block a user