mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-08-24 00:59:24 +00:00
Merge pull request #360 from ZoiteChat/release/2.19
fix duplicate /msg output + Escaping of the intial slash
This commit is contained in:
@@ -3025,7 +3025,7 @@ cmd_msg (struct session *sess, char *tbuf, char *word[], char *word_eol[])
|
|||||||
newsess->server->nick, msg + offset, TRUE, FALSE,
|
newsess->server->nick, msg + offset, TRUE, FALSE,
|
||||||
&no_tags);
|
&no_tags);
|
||||||
}
|
}
|
||||||
else
|
else if (!sess->server->have_echo_message)
|
||||||
{
|
{
|
||||||
/* mask out passwords */
|
/* mask out passwords */
|
||||||
if (g_ascii_strcasecmp (nick, "nickserv") == 0)
|
if (g_ascii_strcasecmp (nick, "nickserv") == 0)
|
||||||
@@ -5058,6 +5058,11 @@ handle_user_input (session *sess, char *text, int history, int nocommand)
|
|||||||
handle_say (sess, text, TRUE);
|
handle_say (sess, text, TRUE);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
if (text[0] == cmd_char && text[1] == cmd_char)
|
||||||
|
{
|
||||||
|
handle_say (sess, text + 1, TRUE);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 1; text[i]; i++)
|
for (i = 1; text[i]; i++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user