X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=clients%2Fgaim%2Fgaim-dolcon.c;h=adb6b11ae8cebfd6d72346555fe793d8015a0f12;hb=547717748489192c66eefedfff7a031010faefce;hp=2cc373182fee6af9fb1045e2b93d2d5b4eff99f1;hpb=ee5d122f15a71fb4ca8e28a9948df65dda87d819;p=doldaconnect.git diff --git a/clients/gaim/gaim-dolcon.c b/clients/gaim/gaim-dolcon.c index 2cc3731..adb6b11 100644 --- a/clients/gaim/gaim-dolcon.c +++ b/clients/gaim/gaim-dolcon.c @@ -1,3 +1,22 @@ +/* + * Dolda Connect - Modular multiuser Direct Connect-style client + * Copyright (C) 2005 Fredrik Tolf (fredrik@dolda2000.com) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ + #ifdef HAVE_CONFIG_H #include #endif @@ -78,7 +97,7 @@ static void newpeercb(struct dc_fnetpeer *peer) data = peer->fn->udata; if((conv = gaim_find_chat(data->gc, peer->fn->id)) != NULL) { - gaim_conv_chat_add_user(GAIM_CONV_CHAT(conv), icswcstombs(peer->nick, "UTF-8", NULL), NULL, GAIM_CBFLAGS_NONE, FALSE); + gaim_conv_chat_add_user(GAIM_CONV_CHAT(conv), icswcstombs(peer->nick, "UTF-8", NULL), NULL, GAIM_CBFLAGS_NONE, TRUE); } } @@ -205,6 +224,7 @@ static void dcfdcb(struct conndata *data, int fd, GaimInputCondition condition) break; } } + dc_freeresp(resp); } updatewrite(data); }