about summary refs log tree commit diff stats
path: root/src/resource.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-02-10 11:19:36 +0000
committerJames Booth <boothj5@gmail.com>2013-02-10 11:19:36 +0000
commitec78914044978fee1119c5a905c6a8fdce03a476 (patch)
treebd731ac50f84d1219699a0609d744ae0dd9bf4f0 /src/resource.c
parent84a4ab95459107d50625b3487ad0ffbee78ffe31 (diff)
downloadprofani-tty-ec78914044978fee1119c5a905c6a8fdce03a476.tar.gz
Only create contacts resource when online
Diffstat (limited to 'src/resource.c')
-rw-r--r--src/resource.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/resource.c b/src/resource.c
index e8443d58..74cb5755 100644
--- a/src/resource.c
+++ b/src/resource.c
@@ -30,6 +30,7 @@
 Resource * resource_new(const char * const name, const char * const show,
     const char * const status, const int priority, const char * const caps_str)
 {
+    assert(g_strcmp0(show, "offline") != 0);
     assert(name != NULL);
     Resource *new_resource = malloc(sizeof(struct resource_t));
     new_resource->name = strdup(name);