]> jfr.im git - irc/quakenet/newserv.git/commitdiff
glstore: Don't accidentally clear all other gline flags.
authorGunnar Beutner <redacted>
Sun, 14 Jul 2013 21:24:16 +0000 (23:24 +0200)
committerGunnar Beutner <redacted>
Sun, 14 Jul 2013 21:24:16 +0000 (23:24 +0200)
--HG--
branch : shroudtrusts

glines/glines_store.c

index bf65d5a544d2dae6cedb9e40d47703b64df74676..0e44d8387181a3d3d9adb8162dd01e942a74fa99 100644 (file)
@@ -60,7 +60,7 @@ static int glstore_loadfile(const char *file) {
 
     gl->creator = getsstring(creator, 512);
 
-    gl->flags = active ? GLINE_ACTIVE : 0;
+    gl->flags |= active ? GLINE_ACTIVE : 0;
 
     gl->reason = getsstring(reason, 512);
     gl->expire = expire;