de-apify GenerateRoomDisplay(), its only needed in serv_rwho.
authorWilfried Goesgens <dothebart@citadel.org>
Sat, 14 Sep 2013 20:44:56 +0000 (22:44 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Sat, 14 Sep 2013 20:44:56 +0000 (22:44 +0200)
citadel/citserver.c
citadel/citserver.h
citadel/modules/rwho/serv_rwho.c

index 28de7e6..666c9cb 100644 (file)
@@ -368,36 +368,6 @@ int CtdlIsPublicClient(void)
 
 
 
-
-/* Don't show the names of private rooms unless the viewing
- * user also knows the rooms.
- */
-void GenerateRoomDisplay(char *real_room,
-                       CitContext *viewed,
-                       CitContext *viewer) {
-
-       int ra;
-
-       strcpy(real_room, viewed->room.QRname);
-       if (viewed->room.QRflags & QR_MAILBOX) {
-               strcpy(real_room, &real_room[11]);
-       }
-       if (viewed->room.QRflags & QR_PRIVATE) {
-               CtdlRoomAccess(&viewed->room, &viewer->user, &ra, NULL);
-               if ( (ra & UA_KNOWN) == 0) {
-                       strcpy(real_room, " ");
-               }
-       }
-
-       if (viewed->cs_flags & CS_CHAT) {
-               while (strlen(real_room) < 14) {
-                       strcat(real_room, " ");
-               }
-               strcpy(&real_room[14], "<chat>");
-       }
-
-}
-
 /*
  * Convenience function.
  */
index 3e616b1..4224fcd 100644 (file)
@@ -45,9 +45,6 @@ void do_async_loop(void);
 void begin_session(struct CitContext *con);
 void citproto_begin_session(void);
 void citproto_begin_admin_session(void);
-void GenerateRoomDisplay(char *real_room,
-                        CitContext *viewed,
-                        CitContext *viewer);
 
 void help_subst (char *strbuf, char *source, char *dest);
 
index 09e256f..4c2e28c 100644 (file)
 
 #include "ctdl_module.h"
 
+/* Don't show the names of private rooms unless the viewing
+ * user also knows the rooms.
+ */
+void GenerateRoomDisplay(char *real_room,
+                       CitContext *viewed,
+                       CitContext *viewer) {
+
+       int ra;
+
+       strcpy(real_room, viewed->room.QRname);
+       if (viewed->room.QRflags & QR_MAILBOX) {
+               strcpy(real_room, &real_room[11]);
+       }
+       if (viewed->room.QRflags & QR_PRIVATE) {
+               CtdlRoomAccess(&viewed->room, &viewer->user, &ra, NULL);
+               if ( (ra & UA_KNOWN) == 0) {
+                       strcpy(real_room, " ");
+               }
+       }
+
+       if (viewed->cs_flags & CS_CHAT) {
+               while (strlen(real_room) < 14) {
+                       strcat(real_room, " ");
+               }
+               strcpy(&real_room[14], "<chat>");
+       }
+
+}
+
+
 
 /*
  * display who's online