X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fvoicetarget.c;h=e2ed569c8f2db196c6d129404503a93355848e7d;hb=114f6eb19ce92e979e8dfbcbad22196072d0e24c;hp=85c26076384a45469db99ca3ad1ad1275eec2339;hpb=477a4a1b836a9693338dd2ef76782013f3fb0a16;p=umurmur.git diff --git a/src/voicetarget.c b/src/voicetarget.c index 85c2607..e2ed569 100644 --- a/src/voicetarget.c +++ b/src/voicetarget.c @@ -1,5 +1,5 @@ -/* Copyright (C) 2009-2010, Martin Johansson - Copyright (C) 2005-2010, Thorvald Natvig +/* Copyright (C) 2009-2014, Martin Johansson + Copyright (C) 2005-2014, Thorvald Natvig All rights reserved. @@ -29,6 +29,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include +#include #include "voicetarget.h" #include "log.h" @@ -36,7 +38,7 @@ void Voicetarget_add_session(client_t *client, int targetId, int sessionId) { struct dlist *itr; voicetarget_t *vt; - + list_iterate(itr, &client->voicetargets) { if (targetId == list_get_entry(itr, voicetarget_t, node)->id) { int i; @@ -57,7 +59,7 @@ void Voicetarget_add_channel(client_t *client, int targetId, int channelId, { struct dlist *itr; voicetarget_t *vt; - + list_iterate(itr, &client->voicetargets) { if (targetId == list_get_entry(itr, voicetarget_t, node)->id) { int i; @@ -72,14 +74,14 @@ void Voicetarget_add_channel(client_t *client, int targetId, int channelId, } } } - } + } } void Voicetarget_add_id(client_t *client, int targetId) { voicetarget_t *newtarget; int i; - + Voicetarget_del_id(client, targetId); newtarget = malloc(sizeof(voicetarget_t)); if (!newtarget)