diff options
author | James Booth <boothj5@gmail.com> | 2013-02-10 11:19:36 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-02-10 11:19:36 +0000 |
commit | ec78914044978fee1119c5a905c6a8fdce03a476 (patch) | |
tree | bd731ac50f84d1219699a0609d744ae0dd9bf4f0 /src/resource.c | |
parent | 84a4ab95459107d50625b3487ad0ffbee78ffe31 (diff) | |
download | profani-tty-ec78914044978fee1119c5a905c6a8fdce03a476.tar.gz |
Only create contacts resource when online
Diffstat (limited to 'src/resource.c')
-rw-r--r-- | src/resource.c | 1 |
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); |