+
/*
* 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"
/*
* 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;
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);
}
-void
-SessionDestroyModule_ROOMCHAT
-(wcsession *sess)
-{
+void SessionDestroyModule_ROOMCHAT(wcsession * sess) {
/* nothing here anymore */
}