Fix bug in channel_description()
authorAri Johnson <ari@theari.com>
Fri, 9 Dec 2022 04:06:37 +0000 (23:06 -0500)
committerAri Johnson <ari@theari.com>
Fri, 9 Dec 2022 04:06:37 +0000 (23:06 -0500)
src/extchat.c

index c4abdffeac3f1e5f5a0a8fb00fdd655dce40f9d4..4a6e837596e3b0183e265fe4cdd6ae29fb20daa9 100644 (file)
@@ -3095,9 +3095,10 @@ channel_description(dbref player)
 
   if (Chanlist(player)) {
     safe_str(T("Channels:"), buf, &bp);
-    for (c = Chanlist(player); c; c = c->next)
+    for (c = Chanlist(player); c; c = c->next) {
       safe_chr(' ', buf, &bp);
       safe_str(ChanName(c->chan), buf, &bp);
+    }
   } else if (IsPlayer(player))
     safe_str(T("Channels: *NONE*"), buf, &bp);