Another year is about to end... So we have to update these damn copyright information :P
[NeonServV5.git] / src / cmd_neonserv_myaccess.c
index 8c7dd143fbbc0d4264e6374b83780e44127e236d..c37f0f8b0452f37a870ad497b89fb551f884c66e 100644 (file)
@@ -1,5 +1,5 @@
-/* cmd_neonserv_myaccess.c - NeonServ v5.2
- * Copyright (C) 2011  Philipp Kreil (pk910)
+/* cmd_neonserv_myaccess.c - NeonServ v5.3
+ * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -162,7 +162,7 @@ static void neonserv_cmd_myaccess_async1(struct ClientSocket *client, struct Cli
                 flagPos += sprintf(flagBuf + flagPos, "v");
             if((cflags & DB_CHANUSER_AUTOINVITE))
                 flagPos += sprintf(flagBuf + flagPos, "i");
-            content[2] = flagBuf;
+            content[2] = (flagPos ? flagBuf : "");
             content[3] = chanuser_row[2];
             table_add(table, content);
         }