mirror of
https://github.com/ChronosX88/psyced.git
synced 2025-01-07 08:41:48 +00:00
don't get upset by _message_video
This commit is contained in:
parent
452e228a14
commit
1b8efa17b0
@ -1318,6 +1318,11 @@ case "_message_echo":
|
||||
case "_message_public":
|
||||
// avoid treating this as _message here
|
||||
break;
|
||||
case "_message_video":
|
||||
case "_message_audio":
|
||||
// not being displayed to users other than psyc clients
|
||||
data = 0;
|
||||
break;
|
||||
case "_message":
|
||||
// this is only visible in person.c, not user.c
|
||||
// therefore probably useless
|
||||
|
@ -1414,8 +1414,8 @@ msg(source, mc, data, mapping vars) {
|
||||
return 0;
|
||||
}
|
||||
// ist das die nette antwort auf /m channel ?
|
||||
// vorsicht aber mit _message_public_question
|
||||
if (!abbrev("_message_public", mc)) mc = "_message_public";
|
||||
if (mc == "_message_private") mc = "_message_public";
|
||||
// vorsicht mit _message_public_question und _message_video
|
||||
}
|
||||
/* if the source is not a member of the room and was allowed
|
||||
* because of qAllowExternal* we probably should use the rooms
|
||||
|
@ -615,6 +615,12 @@ case "_jabber_iq_set":
|
||||
case "_jabber":
|
||||
P1(("%O got %O", ME, mc))
|
||||
break;
|
||||
case "_message_video":
|
||||
case "_message_audio":
|
||||
// not being displayed to users other than psyc clients
|
||||
if (v("scheme") != "psyc") return 1;
|
||||
data = ""; // temporary for @welcome history
|
||||
break;
|
||||
case "_message_private_question":
|
||||
variant = "_ask" + variant;
|
||||
m_delete(vars, "_action");
|
||||
|
Loading…
Reference in New Issue
Block a user