]> 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 2278333ea913422a32ff6b286ad2ff6cdcdfaabb..21c27f7f8d45e57303c1eafb6a1370c0170918d7 100644 (file)
@@ -1,21 +1,16 @@
+
 /*
  * This module handles multiuser chat.
  *
- * Copyright (c) 1996-2010 by the citadel.org team
+ * Copyright (c) 1996-2012 by the citadel.org team
  *
- * This program is free 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.
+ * 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.
- *
- * 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"
 /*
  * 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;
        WC->last_chat_user[0] = 0;
 
        output_headers(1, 1, 1, 0, 0, 0);
-       do_template("roomchat", NULL);
+       do_template("roomchat");
 
        serv_puts("RCHT enter");
        serv_getln(buf, sizeof buf);
@@ -132,7 +126,7 @@ void chat_rwho(void) {
                        else {
                                wc_printf("<span class=\"chat_notmyname_class\">");
                        }
-                       wc_printf("<img src=\"static/citadelchat_16x.gif\">");
+                       wc_printf("<img src=\"static/webcit_icons/essen/16x16/chat.png\">");
                        escputs(buf);
                        wc_printf("</span><br>\n");
                }
@@ -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 */
 }