don't get upset by _message_video

This commit is contained in:
psyc://psyced.org/~lynX 2009-04-10 05:02:35 +02:00
parent 452e228a14
commit 1b8efa17b0
3 changed files with 13 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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");