Now some final cleanup (I hope)

This commit is contained in:
Berke Viktor
2012-10-30 11:47:12 +01:00
parent a51a69134b
commit 507af191bd
12 changed files with 28 additions and 28 deletions

View File

@ -28,7 +28,7 @@
// #pragma GCC visibility push(default)
#include "hexchat-plugin.h"
#define XCHAT_MAX_WORDS 32
#define HEXCHAT_MAX_WORDS 32
// #pragma GCC visibility pop
//#define EXPORT __attribute((visibility("default")))
@ -127,7 +127,7 @@ static int handle_incoming(char *word[], char *word_eol[], void *userdata) {
if (!strcmp(command, "332")) w++;
// Look for encrypted data
for (ew = w+1; ew < XCHAT_MAX_WORDS-1; ew++) {
for (ew = w+1; ew < HEXCHAT_MAX_WORDS-1; ew++) {
const char *s = (ew == w+1 ? word[ew]+1 : word[ew]);
if (strcmp(s, "+OK") == 0 || strcmp(s, "mcps") == 0) goto has_encrypted_data;
}
@ -150,7 +150,7 @@ static int handle_incoming(char *word[], char *word_eol[], void *userdata) {
length = 0;
if (!append(&message, &length, "RECV")) goto decrypt_error;
for (uw = 1; uw < XCHAT_MAX_WORDS; uw++) {
for (uw = 1; uw < HEXCHAT_MAX_WORDS; uw++) {
if (word[uw][0] != '\0' && !append(&message, &length, " ")) goto decrypt_error;
if (uw == ew) {
@ -263,7 +263,7 @@ int hexchat_plugin_init(hexchat_plugin *plugin_handle,
char *arg) {
ph = plugin_handle;
/* Send our info to XChat */
/* Send our info to HexChat */
*name = plugin_name;
*desc = plugin_desc;
*version = plugin_version;

View File

@ -27,7 +27,7 @@
#include <string.h>
#include "fish.h"
// We can't use the XChat plugin API from here...
// We can't use the HexChat plugin API from here...
gchar *get_config_filename() {
const gchar *homedir = g_get_home_dir();
return g_build_filename(homedir, ".xchat2", "blow.ini", NULL);