25 lines
825 B
Diff
25 lines
825 B
Diff
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 2020‑11‑26 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);
|
||
}
|
||
}
|