]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_stats.c
Allow +z messages from outside if -n.
[irc/rqf/shadowircd.git] / modules / m_stats.c
index 653a0e1c5af0a8184f007bdd70529615755ccd0a..b1c68ec0a2589b6fab8b9e90f68154a4c97e3768 100644 (file)
@@ -949,9 +949,9 @@ static struct shared_flags shared_flagtable[] =
        { SHARED_UNRESV,        'R' },
        { SHARED_LOCOPS,        'L' },
        { SHARED_REHASH,        'H' },
-       { SHARED_TDLINE,    'd' },
-       { SHARED_PDLINE,    'D' },
-       { SHARED_UNDLINE,   'E' },
+       { SHARED_TDLINE,        'd' },
+       { SHARED_PDLINE,        'D' },
+       { SHARED_UNDLINE,       'E' },
        { 0,                    '\0'}
 };
 
@@ -961,7 +961,7 @@ stats_shared (struct Client *source_p)
 {
        struct remote_conf *shared_p;
        rb_dlink_node *ptr;
-       char buf[15];
+       char buf[sizeof(shared_flagtable)/sizeof(shared_flagtable[0])];
        char *p;
        int i;