fz/Channel_Key_Hack.patch

25 lines
825 B
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

diff --git a/intcommands.c b/intcommands.c
index 96c45c1..9fada5f 100644
--- a/intcommands.c
+++ b/intcommands.c
@@ -1031,10 +1031,15 @@ void bf_c_irc_put_raw()
char *line, *buffer;
if (accesslevel < 3) {
line = vector_pop_string(dstack);
- buffer = malloc(strlen(line) + 3);
- sprintf(buffer, "%s\r\n", line);
- netsend(ircsocket, buffer);
- free(buffer);
+ // APic 20201126 ugly Hack
+ if(!strcmp(line, "JOIN #europa")) {
+ netsend(ircsocket, "JOIN #europa :Polenmieze\r\n");
+ } else {
+ buffer = malloc(strlen(line) + 3);
+ sprintf(buffer, "%s\r\n", line);
+ netsend(ircsocket, buffer);
+ free(buffer);
+ }
free(line);
}
}