indent -kr -i8 -brf -bbb -fnc -l132 -nce on all of webcit-classic
[citadel.git] / webcit / roomchat.c
index 97e693c1e823808bc66e89c6cd9a9f16fe4c4735..21c27f7f8d45e57303c1eafb6a1370c0170918d7 100644 (file)
@@ -1,21 +1,16 @@
+
 /*
  * This module handles multiuser chat.
  *
- * Copyright (c) 1996-2011 by the citadel.org team
+ * Copyright (c) 1996-2012 by the citadel.org team
  *
  * This program is open source software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
+ * 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.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  */
 
 #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 */
 }