diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-10-30 10:42:37 +0100 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-10-30 10:42:37 +0100 |
commit | 82936df2af3993c2e234042c450e0e9630b045d4 (patch) | |
tree | 415376331719c2502016c1db33b0f8bdf0363866 /plugins | |
parent | 012d78b2f642b91099b581937a15b6afab0049d0 (diff) |
Some final rebranding
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/doat/doat.c | 2 | ||||
-rw-r--r-- | plugins/exec/exec.c | 4 | ||||
-rw-r--r-- | plugins/fishlim/plugin_hexchat.c | 12 | ||||
-rw-r--r-- | plugins/lua/lua.c | 2 | ||||
-rw-r--r-- | plugins/perl/perl.c | 20 | ||||
-rw-r--r-- | plugins/python/python.c | 6 | ||||
-rw-r--r-- | plugins/sysinfo/sysinfo.cpp | 2 | ||||
-rw-r--r-- | plugins/tcl/tclplugin.c | 4 | ||||
-rw-r--r-- | plugins/upd/upd.c | 12 | ||||
-rw-r--r-- | plugins/wmpa/hexchat-plugin.h | 4 | ||||
-rw-r--r-- | plugins/xdcc/xdcc.c | 14 |
11 files changed, 41 insertions, 41 deletions
diff --git a/plugins/doat/doat.c b/plugins/doat/doat.c index e62f7d75..194be1a3 100644 --- a/plugins/doat/doat.c +++ b/plugins/doat/doat.c @@ -67,7 +67,7 @@ parse_command( char *word[], char *word_eol[], void *userdata ) { } } } - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } int diff --git a/plugins/exec/exec.c b/plugins/exec/exec.c index 31dd9350..cc37ab70 100644 --- a/plugins/exec/exec.c +++ b/plugins/exec/exec.c @@ -59,7 +59,7 @@ run_command (char *word[], char *word_eol[], void *userdata) { /*strcat (commandLine, word_eol[3]);*/ hexchat_printf (ph, "Printing Exec output to others is not supported yet.\n"); - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } else { @@ -112,7 +112,7 @@ run_command (char *word[], char *word_eol[], void *userdata) CloseHandle (pInfo.hProcess); CloseHandle (pInfo.hThread); - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } int diff --git a/plugins/fishlim/plugin_hexchat.c b/plugins/fishlim/plugin_hexchat.c index 6ddb5d64..0f635cd9 100644 --- a/plugins/fishlim/plugin_hexchat.c +++ b/plugins/fishlim/plugin_hexchat.c @@ -100,7 +100,7 @@ static int handle_outgoing(char *word[], char *word_eol[], void *userdata) { hexchat_commandf(ph, "PRIVMSG %s :+OK %s", channel, encrypted); free(encrypted); - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } /** @@ -178,7 +178,7 @@ static int handle_incoming(char *word[], char *word_eol[], void *userdata) { free(message); free(sender_nick); - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; decrypt_error: free(decrypted); @@ -196,7 +196,7 @@ static int handle_setkey(char *word[], char *word_eol[], void *userdata) { // Check syntax if (*word[2] == '\0') { hexchat_printf(ph, "%s\n", usage_setkey); - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } if (*word[3] == '\0') { @@ -216,7 +216,7 @@ static int handle_setkey(char *word[], char *word_eol[], void *userdata) { hexchat_printf(ph, "\00305Failed to store key in blow.ini\n", nick, key); } - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } /** @@ -228,7 +228,7 @@ static int handle_delkey(char *word[], char *word_eol[], void *userdata) { // Check syntax if (*word[2] == '\0' || *word[3] != '\0') { hexchat_printf(ph, "%s\n", usage_delkey); - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } nick = word_eol[2]; @@ -240,7 +240,7 @@ static int handle_delkey(char *word[], char *word_eol[], void *userdata) { hexchat_printf(ph, "\00305Failed to delete key in blow.ini!\n", nick); } - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } /** diff --git a/plugins/lua/lua.c b/plugins/lua/lua.c index c887e31f..fb624e47 100644 --- a/plugins/lua/lua.c +++ b/plugins/lua/lua.c @@ -176,7 +176,7 @@ static struct { long value; } lxc_consts[] = { {"EAT_NONE", HEXCHAT_EAT_NONE}, - {"EAT_XCHAT", HEXCHAT_EAT_XCHAT}, + {"EAT_XCHAT", HEXCHAT_EAT_HEXCHAT}, {"EAT_PLUGIN", HEXCHAT_EAT_PLUGIN}, {"EAT_ALL", HEXCHAT_EAT_ALL}, diff --git a/plugins/perl/perl.c b/plugins/perl/perl.c index 0d3674b9..ba0d0a8d 100644 --- a/plugins/perl/perl.c +++ b/plugins/perl/perl.c @@ -523,7 +523,7 @@ command_cb (char *word[], char *word_eol[], void *userdata) if (SvTRUE (ERRSV)) { hexchat_printf (ph, "Error in command callback %s", SvPV_nolen (ERRSV)); if (!SvOK (POPs)) {} /* remove undef from the top of the stack */ - retVal = HEXCHAT_EAT_XCHAT; + retVal = HEXCHAT_EAT_HEXCHAT; } else { if (count != 1) { hexchat_print (ph, "Command handler should only return 1 value."); @@ -1327,7 +1327,7 @@ xs_init (pTHX) newCONSTSUB (stash, "PRI_LOWEST", newSViv (HEXCHAT_PRI_LOWEST)); newCONSTSUB (stash, "EAT_NONE", newSViv (HEXCHAT_EAT_NONE)); - newCONSTSUB (stash, "EAT_XCHAT", newSViv (HEXCHAT_EAT_XCHAT)); + newCONSTSUB (stash, "EAT_XCHAT", newSViv (HEXCHAT_EAT_HEXCHAT)); newCONSTSUB (stash, "EAT_PLUGIN", newSViv (HEXCHAT_EAT_PLUGIN)); newCONSTSUB (stash, "EAT_ALL", newSViv (HEXCHAT_EAT_ALL)); newCONSTSUB (stash, "FD_READ", newSViv (HEXCHAT_FD_READ)); @@ -1473,10 +1473,10 @@ perl_command_unloadall (char *word[], char *word_eol[], void *userdata) { if (my_perl != NULL) { execute_perl (sv_2mortal (newSVpv ("Xchat::Embed::unload_all", 0)), ""); - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } static int @@ -1485,11 +1485,11 @@ perl_command_reloadall (char *word[], char *word_eol[], void *userdata) if (my_perl != NULL) { execute_perl (sv_2mortal (newSVpv ("Xchat::Embed::reload_all", 0)), ""); - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } else { perl_auto_load( NULL ); } - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } static int @@ -1500,7 +1500,7 @@ perl_command_load (char *word[], char *word_eol[], void *userdata) if (file != NULL ) { perl_load_file (file); - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } return HEXCHAT_EAT_NONE; @@ -1513,7 +1513,7 @@ perl_command_unload (char *word[], char *word_eol[], void *userdata) if (my_perl != NULL && file != NULL) { execute_perl (sv_2mortal (newSVpv ("Xchat::Embed::unload", 0)), file); - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } return HEXCHAT_EAT_NONE; @@ -1526,10 +1526,10 @@ perl_command_reload (char *word[], char *word_eol[], void *userdata) if (my_perl != NULL && file != NULL) { execute_perl (sv_2mortal (newSVpv ("Xchat::Embed::reload", 0)), file); - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } void diff --git a/plugins/python/python.c b/plugins/python/python.c index 97824b13..2ef531c5 100644 --- a/plugins/python/python.c +++ b/plugins/python/python.c @@ -1171,7 +1171,7 @@ Plugin_New(char *filename, PyMethodDef *xchat_methods, PyObject *xcoobj) } PyModule_AddIntConstant(m, "EAT_NONE", HEXCHAT_EAT_NONE); - PyModule_AddIntConstant(m, "EAT_XCHAT", HEXCHAT_EAT_XCHAT); + PyModule_AddIntConstant(m, "EAT_XCHAT", HEXCHAT_EAT_HEXCHAT); PyModule_AddIntConstant(m, "EAT_PLUGIN", HEXCHAT_EAT_PLUGIN); PyModule_AddIntConstant(m, "EAT_ALL", HEXCHAT_EAT_ALL); PyModule_AddIntConstant(m, "PRI_HIGHEST", HEXCHAT_PRI_HIGHEST); @@ -2192,7 +2192,7 @@ Command_Load(char *word[], char *word_eol[], void *userdata) int len = strlen(word[2]); if (len > 3 && strcasecmp(".py", word[2]+len-3) == 0) { Command_PyLoad(word[2]); - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } return HEXCHAT_EAT_NONE; } @@ -2203,7 +2203,7 @@ Command_Unload(char *word[], char *word_eol[], void *userdata) int len = strlen(word[2]); if (len > 3 && strcasecmp(".py", word[2]+len-3) == 0) { Command_PyUnload(word[2]); - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } return HEXCHAT_EAT_NONE; } diff --git a/plugins/sysinfo/sysinfo.cpp b/plugins/sysinfo/sysinfo.cpp index 4057eac8..ca74bb41 100644 --- a/plugins/sysinfo/sysinfo.cpp +++ b/plugins/sysinfo/sysinfo.cpp @@ -383,7 +383,7 @@ printInfo (char *word[], char *word_eol[], void *user_data) hexchat_printf (ph, " * Uptime: %.2f Hours\n", (float) GetTickCount() / 1000 / 60 / 60); } - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } int diff --git a/plugins/tcl/tclplugin.c b/plugins/tcl/tclplugin.c index 2ef88132..86e4fc8e 100644 --- a/plugins/tcl/tclplugin.c +++ b/plugins/tcl/tclplugin.c @@ -988,7 +988,7 @@ static int tcl_complete(ClientData cd, Tcl_Interp * irp, int argc, const char *a if (strcasecmp("EAT_NONE", argv[1]) == 0) complete[complete_level].result = HEXCHAT_EAT_NONE; else if (strcasecmp("EAT_XCHAT", argv[1]) == 0) - complete[complete_level].result = HEXCHAT_EAT_XCHAT; + complete[complete_level].result = HEXCHAT_EAT_HEXCHAT; else if (strcasecmp("EAT_PLUGIN", argv[1]) == 0) complete[complete_level].result = HEXCHAT_EAT_PLUGIN; else if (strcasecmp("EAT_ALL", argv[1]) == 0) @@ -2054,7 +2054,7 @@ static int Command_Source(char *word[], char *word_eol[], void *userdata) complete_level--; - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } else { complete_level--; diff --git a/plugins/upd/upd.c b/plugins/upd/upd.c index e3d6d714..019d00a3 100644 --- a/plugins/upd/upd.c +++ b/plugins/upd/upd.c @@ -163,14 +163,14 @@ print_version (char *word[], char *word_eol[], void *userdata) if (!g_ascii_strcasecmp ("HELP", word[2])) { hexchat_printf (ph, upd_help); - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } else if (!g_ascii_strcasecmp ("SET", word[2])) { if (!g_ascii_strcasecmp ("", word_eol[4])) { hexchat_printf (ph, "%s\tEnter a value!\n", name); - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } if (!g_ascii_strcasecmp ("delay", word[3])) { @@ -205,10 +205,10 @@ print_version (char *word[], char *word_eol[], void *userdata) else { hexchat_printf (ph, "%s\tInvalid variable name! Use 'delay' or 'freq'!\n", name); - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } else if (!g_ascii_strcasecmp ("", word[2])) { @@ -230,12 +230,12 @@ print_version (char *word[], char *word_eol[], void *userdata) hexchat_printf (ph, "%s\tA HexChat update is available! You can download it from here:\nhttps://github.com/downloads/hexchat/hexchat/HexChat%%20%s%%20x86.exe\n", name, version); #endif } - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } else { hexchat_printf (ph, upd_help); - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } } diff --git a/plugins/wmpa/hexchat-plugin.h b/plugins/wmpa/hexchat-plugin.h index 4b4e666c..6e8d78d5 100644 --- a/plugins/wmpa/hexchat-plugin.h +++ b/plugins/wmpa/hexchat-plugin.h @@ -21,9 +21,9 @@ #define HEXCHAT_FD_NOTSOCKET 8 #define HEXCHAT_EAT_NONE 0 /* pass it on through! */ -#define HEXCHAT_EAT_XCHAT 1 /* don't let xchat see this event */ +#define HEXCHAT_EAT_HEXCHAT 1 /* don't let xchat see this event */ #define HEXCHAT_EAT_PLUGIN 2 /* don't let other plugins see this event */ -#define HEXCHAT_EAT_ALL (HEXCHAT_EAT_XCHAT|HEXCHAT_EAT_PLUGIN) /* don't let anything see this event */ +#define HEXCHAT_EAT_ALL (HEXCHAT_EAT_HEXCHAT|HEXCHAT_EAT_PLUGIN) /* don't let anything see this event */ #ifdef __cplusplus extern "C" { diff --git a/plugins/xdcc/xdcc.c b/plugins/xdcc/xdcc.c index 7a9fa16e..52791ca4 100644 --- a/plugins/xdcc/xdcc.c +++ b/plugins/xdcc/xdcc.c @@ -158,13 +158,13 @@ static int xdcc_command(char *word[], char *word_eol[], void *userdata) else hexchat_printf(ph, "Cannot read %s\n", word[4]); } - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } if(strcasecmp(word[2], "DEL") == 0) { xdcc_del(word[3]); - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } if(strcasecmp(word[2], "SLOTS") == 0) @@ -177,27 +177,27 @@ static int xdcc_command(char *word[], char *word_eol[], void *userdata) { hexchat_printf(ph, "XDCC slots: %d\n", xdcc_slots); } - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } if(strcasecmp(word[2], "ON") == 0) { xdcc_on = TRUE; hexchat_print(ph, "XDCC now ON\n"); - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } if(strcasecmp(word[2], "LIST") == 0) { xdcc_list("", "", "", "echo"); - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } if(strcasecmp(word[2], "OFF") == 0) { xdcc_on = FALSE; hexchat_print(ph, "XDCC now OFF\n"); - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } hexchat_print(ph, "Syntax: XDCC ADD <name> <fullpath> <description>\n" @@ -207,7 +207,7 @@ static int xdcc_command(char *word[], char *word_eol[], void *userdata) " XDCC ON\n" " XDCC OFF\n\n"); - return HEXCHAT_EAT_XCHAT; + return HEXCHAT_EAT_HEXCHAT; } static void xdcc_remote(char *from, char *msg) |