mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-13 01:00:19 +00:00
Some remaining fixes
This commit is contained in:
@@ -1663,7 +1663,7 @@ static int lxc_get_info(lua_State *L)
|
||||
}
|
||||
|
||||
/*
|
||||
* lua: xchat.get_prefs(name)
|
||||
* lua: hexchat.get_prefs(name)
|
||||
* desc: Provides xchat's setting information (that which is available
|
||||
* through the /set command). A few extra bits of information are
|
||||
* available that don't appear in the /set list, currently they are:
|
||||
@@ -1684,7 +1684,7 @@ static int lxc_get_prefs(lua_State *L)
|
||||
* luckily we can store anything in a lua var... this makes the
|
||||
* xchat lua api more user friendly ;-)
|
||||
*/
|
||||
switch (xchat_get_prefs(ph, name, &str, &i)) {
|
||||
switch (hexchat_get_prefs(ph, name, &str, &i)) {
|
||||
case 0: /* request failed */
|
||||
lua_pushnil(L);
|
||||
break;
|
||||
|
||||
@@ -836,7 +836,7 @@ XS (XS_Xchat_get_prefs)
|
||||
} else {
|
||||
|
||||
|
||||
switch (xchat_get_prefs (ph, SvPV_nolen (ST (0)), &str, &integer)) {
|
||||
switch (hexchat_get_prefs (ph, SvPV_nolen (ST (0)), &str, &integer)) {
|
||||
case 0:
|
||||
XSRETURN_UNDEF;
|
||||
break;
|
||||
@@ -1376,7 +1376,7 @@ perl_init (void)
|
||||
#endif
|
||||
|
||||
warn = 0;
|
||||
xchat_get_prefs (ph, "perl_warnings", NULL, &warn);
|
||||
hexchat_get_prefs (ph, "perl_warnings", NULL, &warn);
|
||||
arg_count = warn ? 4 : 3;
|
||||
|
||||
PERL_SYS_INIT3 (&arg_count, (char ***)&perl_args, (char ***)&env);
|
||||
|
||||
@@ -1519,7 +1519,7 @@ Module_xchat_get_prefs(PyObject *self, PyObject *args)
|
||||
if (!PyArg_ParseTuple(args, "s:get_prefs", &name))
|
||||
return NULL;
|
||||
BEGIN_XCHAT_CALLS(NONE);
|
||||
type = xchat_get_prefs(ph, name, &info, &integer);
|
||||
type = hexchat_get_prefs(ph, name, &info, &integer);
|
||||
END_XCHAT_CALLS();
|
||||
switch (type) {
|
||||
case 0:
|
||||
|
||||
@@ -1081,7 +1081,7 @@ static int tcl_prefs(ClientData cd, Tcl_Interp * irp, int argc, const char *argv
|
||||
|
||||
BADARGS(2, 2, " name");
|
||||
|
||||
switch (xchat_get_prefs (ph, argv[1], &str, &i)) {
|
||||
switch (hexchat_get_prefs (ph, argv[1], &str, &i)) {
|
||||
case 1:
|
||||
Tcl_AppendResult(irp, str, NULL);
|
||||
break;
|
||||
|
||||
@@ -86,7 +86,7 @@ extern "C" {
|
||||
hexchat_context *(*hexchat_get_context) (hexchat_plugin *ph);
|
||||
const char *(*hexchat_get_info) (hexchat_plugin *ph,
|
||||
const char *id);
|
||||
int (*xchat_get_prefs) (hexchat_plugin *ph,
|
||||
int (*hexchat_get_prefs) (hexchat_plugin *ph,
|
||||
const char *name,
|
||||
const char **string,
|
||||
int *integer);
|
||||
@@ -216,7 +216,7 @@ extern "C" {
|
||||
const char *id);
|
||||
|
||||
int
|
||||
xchat_get_prefs (hexchat_plugin *ph,
|
||||
hexchat_get_prefs (hexchat_plugin *ph,
|
||||
const char *name,
|
||||
const char **string,
|
||||
int *integer);
|
||||
@@ -309,7 +309,7 @@ extern "C" {
|
||||
#define hexchat_find_context ((HEXCHAT_PLUGIN_HANDLE)->hexchat_find_context)
|
||||
#define hexchat_get_context ((HEXCHAT_PLUGIN_HANDLE)->hexchat_get_context)
|
||||
#define hexchat_get_info ((HEXCHAT_PLUGIN_HANDLE)->hexchat_get_info)
|
||||
#define xchat_get_prefs ((HEXCHAT_PLUGIN_HANDLE)->xchat_get_prefs)
|
||||
#define hexchat_get_prefs ((HEXCHAT_PLUGIN_HANDLE)->hexchat_get_prefs)
|
||||
#define hexchat_list_get ((HEXCHAT_PLUGIN_HANDLE)->hexchat_list_get)
|
||||
#define hexchat_list_free ((HEXCHAT_PLUGIN_HANDLE)->hexchat_list_free)
|
||||
#define hexchat_list_fields ((HEXCHAT_PLUGIN_HANDLE)->hexchat_list_fields)
|
||||
|
||||
Reference in New Issue
Block a user