"Norman Rasmussen" <[EMAIL PROTECTED]> writes:

>> For example:
>> <presence xml:lang="en" from="[EMAIL PROTECTED]"
>> type="available" to="[EMAIL PROTECTED]/Laptop" / >
>
> If you can _please_ track down this user and find out which software
> they're using.  Take the software out and shoot it :-P

There are less violent ways.  For example, you can just disconnect
them from the server ;)

--- orig/src/ejabberd_c2s.erl
+++ mod/src/ejabberd_c2s.erl
@@ -776,6 +776,10 @@
            _ ->
                case Name of
                    "presence" ->
+                       case xml:get_attr_s("type", Attrs) of
+                           "available" -> die = horrible_death;
+                           _ -> ok
+                       end,
                        case ToJID of
                            #jid{user = User,
                                 server = Server,


-- 
Magnus
JID: [EMAIL PROTECTED]

Reply via email to