1
0
Эх сурвалжийг харах

* Reset rare IRCD features back to default when disconnecting from server

Bryan Drewery 16 жил өмнө
parent
commit
6b23751837

+ 1 - 1
src/mod/server.mod/server.c

@@ -92,7 +92,7 @@ static time_t lastpingtime;	/* IRCNet LAGmeter support -- drummer */
 static char stackablecmds[511] = "";
 static char stackable2cmds[511] = "";
 static time_t last_time;
-static bool use_penalties;
+static bool use_penalties = 0;
 static int use_fastdeq;
 size_t nick_len = 9;			/* Maximal nick length allowed on the network. */
 char deaf_char = 0;

+ 4 - 0
src/mod/server.mod/servmsg.c

@@ -1131,7 +1131,11 @@ static void disconnect_server(int idx, int dolost)
   floodless = 0;
   botuserhost[0] = 0;
   botuserip[0] = 0; 
+  use_penalties = 0;
+  use_354 = 0;
   deaf_char = 0;
+  use_exempts = 0;
+  use_invites = 0;
   if (dolost) {
     Auth::DeleteAll();
     trying_server = 0;