]> code.citadel.org Git - citadel.git/blobdiff - webcit/roomchat.c
indent -kr -i8 -brf -bbb -fnc -l132 -nce on all of webcit-classic
[citadel.git] / webcit / roomchat.c
index e2acc7b0c6126afc943acbd3bb0940a22b0ada97..21c27f7f8d45e57303c1eafb6a1370c0170918d7 100644 (file)
@@ -1,3 +1,4 @@
+
 /*
  * This module handles multiuser chat.
  *
@@ -5,17 +6,11 @@
  *
  * This program is open source software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License, version 3.
- * 
- * 
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- *
- * 
- * 
- * 
  */
 
 #include "webcit.h"
@@ -24,8 +19,7 @@
 /*
  * Display the screen containing multiuser chat for a room.
  */
-void do_chat(void)
-{
+void do_chat(void) {
        char buf[256];
 
        WC->last_chat_seq = 0;
@@ -147,15 +141,12 @@ void chat_exit(void) {
        char buf[1024];
 
        serv_puts("RCHT exit");
-       serv_getln(buf, sizeof buf);            /* Throw away the server reply */
+       serv_getln(buf, sizeof buf);    /* Throw away the server reply */
 }
 
 
 
-void 
-InitModule_ROOMCHAT
-(void)
-{
+void InitModule_ROOMCHAT(void) {
        WebcitAddUrlHandler(HKEY("chat"), "", 0, do_chat, 0);
        WebcitAddUrlHandler(HKEY("chat_recv"), "", 0, chat_recv, AJAX);
        WebcitAddUrlHandler(HKEY("chat_rwho"), "", 0, chat_rwho, AJAX);
@@ -164,9 +155,6 @@ InitModule_ROOMCHAT
 }
 
 
-void 
-SessionDestroyModule_ROOMCHAT
-(wcsession *sess)
-{
+void SessionDestroyModule_ROOMCHAT(wcsession * sess) {
        /* nothing here anymore */
 }