KVIrc  4.9.2
DeveloperAPIs
Macros | Functions | Variables
KviInternalCommand.cpp File Reference
#include "KviInternalCommand.h"

Macros

#define _KVI_INTERNALCMD_CPP_
 
#define JOIN_CHANNEL_ON_NETWORK(_szChan, _szNet)
 

Functions

const char * kvi_getInternalCommandBuffer (int idx)
 

Variables

static const char * internalCommandTable [KVI_NUM_INTERNAL_COMMANDS]
 

Macro Definition Documentation

#define _KVI_INTERNALCMD_CPP_
#define JOIN_CHANNEL_ON_NETWORK (   _szChan,
  _szNet 
)
Value:
"foreach(%ctx,$context.list)" \
"{" \
" if(" \
" $str.contains($my.server(%ctx),\"" _szNet "\",false) ||" \
" $str.contains($my.network(%ctx),\"" _szNet "\",false)" \
" )" \
" {" \
" foreach(%chan,$window.list(channel,%ctx))" \
" {" \
" if($target(%chan) == \"" _szChan "\")" \
" {" \
" window.activate %chan;" \
" return;" \
" }" \
" }" \
" rebind $console(%ctx);" \
" join \"" _szChan "\";" \
" return;" \
" }" \
"}" \
"server -u -c=\"join " _szChan "\" net:" _szNet ""

Function Documentation

const char* kvi_getInternalCommandBuffer ( int  idx)

Variable Documentation

const char* internalCommandTable[KVI_NUM_INTERNAL_COMMANDS]
static