mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-12 00:30:19 +00:00
Increase max number of words a line can be split into
This may have unintended side-effects but 32 is a very low value and I was seeing real world bugs being caused by this. Specifically an ISUPPORT line with more features than this could store.
This commit is contained in:
@@ -75,7 +75,7 @@
|
||||
#define DOMAINLEN 100
|
||||
#define NICKLEN 64 /* including the NULL, so 63 really */
|
||||
#define CHANLEN 300
|
||||
#define PDIWORDS 32
|
||||
#define PDIWORDS 48
|
||||
#define USERNAMELEN 10
|
||||
#define HIDDEN_CHAR 8 /* invisible character for xtext */
|
||||
|
||||
|
||||
@@ -662,11 +662,11 @@ plugin_emit_print (session *sess, char *word[], time_t server_time)
|
||||
int
|
||||
plugin_emit_dummy_print (session *sess, char *name)
|
||||
{
|
||||
char *word[32];
|
||||
char *word[PDIWORDS];
|
||||
int i;
|
||||
|
||||
word[0] = name;
|
||||
for (i = 1; i < 32; i++)
|
||||
for (i = 1; i < PDIWORDS; i++)
|
||||
word[i] = "\000";
|
||||
|
||||
return plugin_hook_run (sess, name, word, NULL, NULL, HOOK_PRINT);
|
||||
|
||||
Reference in New Issue
Block a user