summaryrefslogtreecommitdiff
path: root/protocols/Gadu-Gadu/ownerinfo.c
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-15 16:44:52 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-15 16:44:52 +0000
commit4649bcfc2b1cbbe2f004d7bec963a7528866c072 (patch)
treec6619f8f08266c740dc4e9783396f4f614319e1f /protocols/Gadu-Gadu/ownerinfo.c
parent43691e8134fab2a55243607b2047c2fb3f3ee04b (diff)
z całym szacunkiem dla naszych polskich użytkowników
git-svn-id: http://svn.miranda-ng.org/main/trunk@977 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Gadu-Gadu/ownerinfo.c')
-rw-r--r--protocols/Gadu-Gadu/ownerinfo.c88
1 files changed, 0 insertions, 88 deletions
diff --git a/protocols/Gadu-Gadu/ownerinfo.c b/protocols/Gadu-Gadu/ownerinfo.c
deleted file mode 100644
index 28cfb4df75..0000000000
--- a/protocols/Gadu-Gadu/ownerinfo.c
+++ /dev/null
@@ -1,88 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-// Gadu-Gadu Plugin for Miranda IM
-//
-// Copyright (c) 2003-2006 Adam Strzelecki <ono+miranda@java.pl>
-//
-// 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.
-////////////////////////////////////////////////////////////////////////////////
-
-#include "gg.h"
-
-//////////////////////////////////////////////////////////
-// remind password
-
-typedef struct
-{
- uin_t uin;
- const char *email;
-} GG_REMIND_PASS;
-
-void __cdecl gg_remindpasswordthread(GGPROTO *gg, void *param)
-{
- // Connection handle
- struct gg_http *h;
- GG_REMIND_PASS *rp = (GG_REMIND_PASS *)param;
- GGTOKEN token;
-
-#ifdef DEBUGMODE
- gg_netlog(gg, "gg_remindpasswordthread(): Starting.");
-#endif
- if (!rp || !rp->email || !rp->uin || !strlen(rp->email))
- {
- if(rp) free(rp);
- return;
- }
-
- // Get token
- if (!gg_gettoken(gg, &token)) return;
-
- if (!(h = gg_remind_passwd3(rp->uin, rp->email, token.id, token.val, 0)))
- {
- char error[128];
- mir_snprintf(error, sizeof(error), Translate("Password could not be reminded because of error:\n\t%s"), strerror(errno));
- MessageBox(
- NULL,
- error,
- GG_PROTONAME,
- MB_OK | MB_ICONSTOP
- );
- gg_netlog(gg, "gg_remindpasswordthread(): Password could not be reminded because of \"%s\".", strerror(errno));
- }
- else
- {
- gg_pubdir_free(h);
- gg_netlog(gg, "gg_remindpasswordthread(): Password remind successful.");
- MessageBox(
- NULL,
- Translate("Password was sent to your e-mail."),
- GG_PROTONAME,
- MB_OK | MB_ICONINFORMATION
- );
- }
-
-#ifdef DEBUGMODE
- gg_netlog(gg, "gg_remindpasswordthread(): End.");
-#endif
- if(rp) free(rp);
-}
-
-void gg_remindpassword(GGPROTO *gg, uin_t uin, const char *email)
-{
- GG_REMIND_PASS *rp = malloc(sizeof(GG_REMIND_PASS));
-
- rp->uin = uin;
- rp->email = email;
- gg_forkthread(gg, gg_remindpasswordthread, rp);
-}