1
//=============================================================================
3
// File : kvi_internalcmd.cpp
4
// Creation date : Sun Aug 13 2000 19:22:45 by Szymon Stefanek
6
// This file is part of the KVirc irc client distribution
7
// Copyright (C) 2000-2008 Szymon Stefanek (pragma at kvirc dot net)
9
// This program is FREE software. You can redistribute it and/or
10
// modify it under the terms of the GNU General Public License
11
// as published by the Free Software Foundation; either version 2
12
// of the License, or (at your opinion) any later version.
14
// This program is distributed in the HOPE that it will be USEFUL,
15
// but WITHOUT ANY WARRANTY; without even the implied warranty of
16
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17
// See the GNU General Public License for more details.
19
// You should have received a copy of the GNU General Public License
20
// along with this program. If not, write to the Free Software Foundation,
21
// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23
//=============================================================================
25
#define _KVI_INTERNALCMD_CPP_
27
#include "kvi_internalcmd.h"
29
// FIXME: #warning "LOCALIZE THIS!"
31
static const char * internalCommandTable[KVI_NUM_INTERNAL_COMMANDS]=
33
"echo INTERNAL COMMAND ERROR: INDEX OUT OF RANGE",
37
"if($option(boolShowGeneralOptionsDialogAsToplevel))options.dialog -t; else options.dialog",
41
"if($option(boolShowRegisteredUsersDialogAsToplevel))reguser.edit -t; else reguser.edit",
53
"openurl http://www.kvirc.net",
55
"if($option(boolShowChannelsJoinDialogAsToplevel))channelsjoin.open -t;else channelsjoin.open",
56
"if($option(boolShowServersConnectDialogAsToplevel))options.edit -t KviServerOptionsWidget;else options.edit KviServerOptionsWidget",
58
"openurl http://www.kvirc.net/?id=themes",
59
"openurl http://www.kvirc.net/?id=mailinglist",
60
"openurl https://svn.kvirc.de/kvirc/wiki#Bugreportticket",
63
"dialog.file(open,\"Select a Script File\"){ if(!$str.isEmpty($0))parse $0; }",
66
"openurl http://www.kvirc.ru",
67
"openurl irc://freenode/kvirc",
68
"openurl irc://ircnet/kvirc",
69
"openurl irc://azzurra/kvirc.net",
70
"openurl http://kvirc-fr.info",
71
"openurl irc://freenode/kvirc-fr",
72
"openurl irc://irc.europnet.org/kvirc"
76
const char * kvi_getInternalCommandBuffer(int idx)
78
if(idx > 0 && idx < KVI_NUM_INTERNAL_COMMANDS)
80
return internalCommandTable[idx];
82
return internalCommandTable[0];