diff options
Diffstat (limited to 'src/de/gultsch/chat/xmpp/MessagePacket.java')
-rw-r--r-- | src/de/gultsch/chat/xmpp/MessagePacket.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/de/gultsch/chat/xmpp/MessagePacket.java b/src/de/gultsch/chat/xmpp/MessagePacket.java index 0d4d07d7d..160a8c0ad 100644 --- a/src/de/gultsch/chat/xmpp/MessagePacket.java +++ b/src/de/gultsch/chat/xmpp/MessagePacket.java @@ -7,6 +7,7 @@ public class MessagePacket extends Element { public static final int TYPE_UNKNOWN = 1; public static final int TYPE_NO = 2; public static final int TYPE_GROUPCHAT = 3; + public static final int TYPE_ERROR = 4; private MessagePacket(String name) { super(name); @@ -71,6 +72,8 @@ public class MessagePacket extends Element { return TYPE_CHAT; } else if (type.equals("groupchat")) { return TYPE_GROUPCHAT; + } else if (type.equals("error")) { + return TYPE_ERROR; } else { return TYPE_UNKNOWN; } |