aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/module/presence/module.vala
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp-vala/src/module/presence/module.vala')
-rw-r--r--xmpp-vala/src/module/presence/module.vala3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmpp-vala/src/module/presence/module.vala b/xmpp-vala/src/module/presence/module.vala
index 6c9d183c..c69f1e3a 100644
--- a/xmpp-vala/src/module/presence/module.vala
+++ b/xmpp-vala/src/module/presence/module.vala
@@ -5,6 +5,7 @@ namespace Xmpp.Presence {
public class Module : XmppStreamModule {
public const string ID = "presence_module";
+ public static ModuleIdentity<Module> IDENTITY = new ModuleIdentity<Module>(NS_URI, ID);
public signal void received_presence(XmppStream stream, Presence.Stanza presence);
public signal void pre_send_presence_stanza(XmppStream stream, Presence.Stanza presence);
@@ -96,7 +97,7 @@ namespace Xmpp.Presence {
}
public static Module? get_module(XmppStream stream) {
- return (Module?) stream.get_module(NS_URI, ID);
+ return (Module?) stream.get_module(IDENTITY);
}
public static void require(XmppStream stream) {