diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-02-02 14:45:38 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-02-02 14:45:38 +0000 |
commit | 084abf83af60fa6ea208f89777ab6026c2ac25cb (patch) | |
tree | 11cbca8c580bee85bfcac2a26a2321abe5a32dd1 /clist_classic_sje/finalcommand.c | |
parent | 8029b70725875a41ee394aabcbe4d39b658a6364 (diff) |
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@108 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'clist_classic_sje/finalcommand.c')
-rw-r--r-- | clist_classic_sje/finalcommand.c | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/clist_classic_sje/finalcommand.c b/clist_classic_sje/finalcommand.c deleted file mode 100644 index 2e8ecbb..0000000 --- a/clist_classic_sje/finalcommand.c +++ /dev/null @@ -1,58 +0,0 @@ -/*
-
-Miranda IM: the free IM client for Microsoft* Windows*
-
-Copyright 2000-2003 Miranda ICQ/IM project,
-all portions of this codebase are copyrighted to the people
-listed in contributors.txt.
-
-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 "commonheaders.h"
-
-char exit_command[MAX_PATH],
- exit_command_dir[MAX_PATH],
- exit_command_params[MAX_PATH];
-
-BOOL command_valid = FALSE,
- command_dir_valid = FALSE,
- command_params_valid = FALSE;
-
-void FinalCommandSetup(void) {
- DBVARIANT dbv;
-
- if(!DBGetContactSetting(0, "db3x", "ExitCommand", &dbv) && dbv.type == DBVT_ASCIIZ) {
- strncpy(exit_command, dbv.pszVal, MAX_PATH);
- command_valid = TRUE;
- DBFreeVariant(&dbv);
-
- if(!DBGetContactSetting(0, "db3x", "ExitCommandParams", &dbv) && dbv.type == DBVT_ASCIIZ) {
- strncpy(exit_command_params, dbv.pszVal, MAX_PATH);
- command_params_valid = TRUE;
- DBFreeVariant(&dbv);
- }
- if(!DBGetContactSetting(0, "db3x", "ExitCommandDir", &dbv) && dbv.type == DBVT_ASCIIZ) {
- strncpy(exit_command_dir, dbv.pszVal, MAX_PATH);
- command_dir_valid = TRUE;
- DBFreeVariant(&dbv);
- }
- }
-}
-
-void FinalCommandExecute(void) {
- if(command_valid)
- ShellExecute(0, 0, exit_command, command_params_valid ? exit_command_params : 0, command_dir_valid ? exit_command_dir : 0, SW_SHOWNORMAL);
-}
|