mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-12 08:40:19 +00:00
new name after fork
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
#include <sys/mman.h>
|
||||
#endif
|
||||
|
||||
#include "hexchat.h"
|
||||
#include "zoitechat.h"
|
||||
#include "cfgfiles.h"
|
||||
#include "chanopt.h"
|
||||
#include "plugin.h"
|
||||
@@ -40,7 +40,7 @@
|
||||
#include "server.h"
|
||||
#include "util.h"
|
||||
#include "outbound.h"
|
||||
#include "hexchatc.h"
|
||||
#include "zoitechatc.h"
|
||||
#include "text.h"
|
||||
#include "typedef.h"
|
||||
#ifdef WIN32
|
||||
@@ -771,7 +771,7 @@ text_convert_invalid (const gchar* text, gssize len, GIConv converter, const gch
|
||||
* But iconv may not convert everything till invalid_start_pos since the last few bytes may be part of a shift sequence.
|
||||
* So get the new bytes_read and use it as the actual invalid_start_pos to handle this.
|
||||
*
|
||||
* See https://github.com/hexchat/hexchat/issues/1758
|
||||
* See https://github.com/zoitechat/zoitechat/issues/1758
|
||||
*/
|
||||
result_part = g_convert_with_iconv (current_start, invalid_start_pos, converter, &invalid_start_pos, &result_part_len, NULL);
|
||||
g_iconv (converter, NULL, NULL, NULL, NULL);
|
||||
@@ -1565,7 +1565,7 @@ pevent_make_pntevts (void)
|
||||
|
||||
if (pevt_build_string (pntevts_text[i], &(pntevts[i]), &m) != 0 && !translate)
|
||||
{
|
||||
g_error ("HexChat CRITICAL *** default event text failed to build!");
|
||||
g_error ("ZoiteChat CRITICAL *** default event text failed to build!");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1576,7 +1576,7 @@ pevent_make_pntevts (void)
|
||||
|
||||
if (pevt_build_string (pntevts_text[i], &(pntevts[i]), &m) != 0)
|
||||
{
|
||||
g_error ("HexChat CRITICAL *** default event text failed to build!");
|
||||
g_error ("ZoiteChat CRITICAL *** default event text failed to build!");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1646,9 +1646,9 @@ pevent_load (char *filename)
|
||||
char *ofs;
|
||||
|
||||
if (filename == NULL)
|
||||
fd = hexchat_open_file ("pevents.conf", O_RDONLY, 0, 0);
|
||||
fd = zoitechat_open_file ("pevents.conf", O_RDONLY, 0, 0);
|
||||
else
|
||||
fd = hexchat_open_file (filename, O_RDONLY, 0, XOF_FULLPATH);
|
||||
fd = zoitechat_open_file (filename, O_RDONLY, 0, XOF_FULLPATH);
|
||||
|
||||
if (fd == -1)
|
||||
return 1;
|
||||
@@ -1705,7 +1705,7 @@ pevent_check_all_loaded (void)
|
||||
if (pntevts_text[i] == NULL)
|
||||
{
|
||||
/*printf ("%s\n", te[i].name);
|
||||
g_snprintf(out, sizeof(out), "The data for event %s failed to load. Reverting to defaults.\nThis may be because a new version of HexChat is loading an old config file.\n\nCheck all print event texts are correct", evtnames[i]);
|
||||
g_snprintf(out, sizeof(out), "The data for event %s failed to load. Reverting to defaults.\nThis may be because a new version of ZoiteChat is loading an old config file.\n\nCheck all print event texts are correct", evtnames[i]);
|
||||
gtkutil_simpledialog(out); */
|
||||
/* make-te.c sets this 128 flag (DON'T call gettext() flag) */
|
||||
if (te[i].num_args & 128)
|
||||
@@ -1774,7 +1774,7 @@ format_event (session *sess, int index, char **args, char *o, gsize sizeofo, uns
|
||||
if (a > numargs)
|
||||
{
|
||||
fprintf (stderr,
|
||||
"HexChat DEBUG: display_event: arg > numargs (%d %d %s)\n",
|
||||
"ZoiteChat DEBUG: display_event: arg > numargs (%d %d %s)\n",
|
||||
a, numargs, i);
|
||||
break;
|
||||
}
|
||||
@@ -2167,10 +2167,10 @@ pevent_save (char *fn)
|
||||
char buf[1024];
|
||||
|
||||
if (!fn)
|
||||
fd = hexchat_open_file ("pevents.conf", O_CREAT | O_TRUNC | O_WRONLY,
|
||||
fd = zoitechat_open_file ("pevents.conf", O_CREAT | O_TRUNC | O_WRONLY,
|
||||
0x180, XOF_DOMODE);
|
||||
else
|
||||
fd = hexchat_open_file (fn, O_CREAT | O_TRUNC | O_WRONLY, 0x180,
|
||||
fd = zoitechat_open_file (fn, O_CREAT | O_TRUNC | O_WRONLY, 0x180,
|
||||
XOF_FULLPATH | XOF_DOMODE);
|
||||
if (fd == -1)
|
||||
{
|
||||
@@ -2257,9 +2257,9 @@ sound_play (const char *file, gboolean quiet)
|
||||
{
|
||||
ca_context_create (&ca_con);
|
||||
ca_context_change_props (ca_con,
|
||||
CA_PROP_APPLICATION_ID, "hexchat",
|
||||
CA_PROP_APPLICATION_NAME, "HexChat",
|
||||
CA_PROP_APPLICATION_ICON_NAME, "hexchat", NULL);
|
||||
CA_PROP_APPLICATION_ID, "zoitechat",
|
||||
CA_PROP_APPLICATION_NAME, "ZoiteChat",
|
||||
CA_PROP_APPLICATION_ICON_NAME, "zoitechat", NULL);
|
||||
}
|
||||
|
||||
if (ca_context_play (ca_con, 0, CA_PROP_MEDIA_FILENAME, wavfile, NULL) != 0)
|
||||
@@ -2270,7 +2270,7 @@ sound_play (const char *file, gboolean quiet)
|
||||
if (cmd)
|
||||
{
|
||||
buf = g_strdup_printf ("%s \"%s\"", cmd, wavfile);
|
||||
hexchat_exec (buf);
|
||||
zoitechat_exec (buf);
|
||||
g_free (buf);
|
||||
g_free (cmd);
|
||||
}
|
||||
@@ -2320,7 +2320,7 @@ sound_load ()
|
||||
|
||||
memset (&sound_files, 0, sizeof (char *) * (NUM_XP));
|
||||
|
||||
fd = hexchat_open_file ("sound.conf", O_RDONLY, 0, 0);
|
||||
fd = zoitechat_open_file ("sound.conf", O_RDONLY, 0, 0);
|
||||
if (fd == -1)
|
||||
return;
|
||||
|
||||
@@ -2350,7 +2350,7 @@ sound_save ()
|
||||
int fd, i;
|
||||
char buf[512];
|
||||
|
||||
fd = hexchat_open_file ("sound.conf", O_CREAT | O_TRUNC | O_WRONLY, 0x180,
|
||||
fd = zoitechat_open_file ("sound.conf", O_CREAT | O_TRUNC | O_WRONLY, 0x180,
|
||||
XOF_DOMODE);
|
||||
if (fd == -1)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user