From 6fde6b0fe90abde84011202edd40fe46eb06af44 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 21 Nov 2010 16:20:55 +0000 Subject: --- src/mods/html/Makefile | 25 ------------------------- src/mods/html/yc_admin.cpp | 11 +++++------ src/mods/html/yc_colors.cpp | 3 +-- src/mods/html/yc_help.cpp | 7 +++---- src/mods/html/yc_loggedin.cpp | 3 +-- src/mods/html/yc_options.cpp | 3 +-- src/mods/html/yc_register.cpp | 3 +-- 7 files changed, 12 insertions(+), 43 deletions(-) delete mode 100644 src/mods/html/Makefile (limited to 'src/mods/html') diff --git a/src/mods/html/Makefile b/src/mods/html/Makefile deleted file mode 100644 index c17d7f6..0000000 --- a/src/mods/html/Makefile +++ /dev/null @@ -1,25 +0,0 @@ -SRCS=$(shell find ./ -name '*.cpp') -MODS=$(addprefix ../../../mods/html/, $(SRCS:.cpp=.so)) -CXX=g++ -CXXFLAGS=-fno-inline -fno-default-inline -g -O2 ${EFLAGS} -all: mods -${MODS}: - @if ! test -d `dirname $@`; then mkdir -p `dirname $@`; fi - @${CXX} ${CXXGLAGS} -fPIC -shared -s -o $@ ` \ - echo $(notdir $@) | sed s/.so/.cpp/` - @echo "mods:html:`basename $@ | sed s/\.so// | sed s/yc_//` (` \ - du -hs $@ | awk '{ print $$1 }'`) " -infotext: - @echo "===> Compiling html modules" -mods: infotext ${MODS} - @echo "===> Num of html modules: `ls \ - ../../../mods/html/*.so | wc -l | sed 's/ //g;'`" -clean: - @echo "===> Cleaning html modules" - @if test -d ../../../mods/html; then rm -Rf ../../../mods/html; fi -../../../mods/html/./yc_admin.so: yc_admin.cpp -../../../mods/html/./yc_colors.so: yc_colors.cpp -../../../mods/html/./yc_help.so: yc_help.cpp -../../../mods/html/./yc_loggedin.so: yc_loggedin.cpp -../../../mods/html/./yc_options.so: yc_options.cpp -../../../mods/html/./yc_register.so: yc_register.cpp diff --git a/src/mods/html/yc_admin.cpp b/src/mods/html/yc_admin.cpp index a3a7f1f..bdf1694 100644 --- a/src/mods/html/yc_admin.cpp +++ b/src/mods/html/yc_admin.cpp @@ -1,12 +1,11 @@ /*:* *: File: ./src/mods/html/yc_admin.cpp *: - *: yChat; Homepage: ychat.buetow.org; Version 0.9.0-CURRENT + *: yChat; Homepage: www.yChat.org; Version 0.8.3-CURRENT *: *: Copyright (C) 2003 Paul C. Buetow, Volker Richter *: Copyright (C) 2004 Paul C. Buetow *: Copyright (C) 2005 EXA Digital Solutions GbR - *: Copyright (C) 2006, 2007 Paul C. Buetow *: *: This program is free software; you can redistribute it and/or *: modify it under the terms of the GNU General Public License @@ -38,7 +37,7 @@ extern "C" { s_string = tool::replace(s_string, "<", "<"); s_string = tool::replace(s_string, ">", ">"); - s_string = tool::replace(s_string, "\n", "
"); + s_string = tool::replace(s_string, "\n", "
"); return s_string; } @@ -54,10 +53,10 @@ extern "C" sort(p_vec_keys->begin(), p_vec_keys->end()); vector::iterator p_vec_keys_iter = p_vec_keys->begin(); - p_content->append( "Currently are " + tool::int2string(p_vec_keys->size()) + " options available!

\n"); + p_content->append( "Currently are " + tool::int2string(p_vec_keys->size()) + " options available!

\n"); p_content->append( "\n" ); - for ( ;p_vec_keys_iter != p_vec_keys->end(); ++p_vec_keys_iter ) + for( ;p_vec_keys_iter != p_vec_keys->end(); ++p_vec_keys_iter ) { if ( p_vec_keys_iter->find(".descr") != string::npos ) @@ -89,7 +88,7 @@ extern "C" p_content->append( "

\n" ); } // while - p_content->append( "
\n
\n" ); + p_content->append( "\n
\n" ); return 0; } diff --git a/src/mods/html/yc_colors.cpp b/src/mods/html/yc_colors.cpp index dba0318..be87942 100644 --- a/src/mods/html/yc_colors.cpp +++ b/src/mods/html/yc_colors.cpp @@ -1,12 +1,11 @@ /*:* *: File: ./src/mods/html/yc_colors.cpp *: - *: yChat; Homepage: ychat.buetow.org; Version 0.9.0-CURRENT + *: yChat; Homepage: www.yChat.org; Version 0.8.3-CURRENT *: *: Copyright (C) 2003 Paul C. Buetow, Volker Richter *: Copyright (C) 2004 Paul C. Buetow *: Copyright (C) 2005 EXA Digital Solutions GbR - *: Copyright (C) 2006, 2007 Paul C. Buetow *: *: This program is free software; you can redistribute it and/or *: modify it under the terms of the GNU General Public License diff --git a/src/mods/html/yc_help.cpp b/src/mods/html/yc_help.cpp index 970192e..8b548e5 100644 --- a/src/mods/html/yc_help.cpp +++ b/src/mods/html/yc_help.cpp @@ -1,12 +1,11 @@ /*:* *: File: ./src/mods/html/yc_help.cpp *: - *: yChat; Homepage: ychat.buetow.org; Version 0.9.0-CURRENT + *: yChat; Homepage: www.yChat.org; Version 0.8.3-CURRENT *: *: Copyright (C) 2003 Paul C. Buetow, Volker Richter *: Copyright (C) 2004 Paul C. Buetow *: Copyright (C) 2005 EXA Digital Solutions GbR - *: Copyright (C) 2006, 2007 Paul C. Buetow *: *: This program is free software; you can redistribute it and/or *: modify it under the terms of the GNU General Public License @@ -49,7 +48,7 @@ extern "C" sort(p_vec_keys->begin(), p_vec_keys->end()); vector::iterator p_vec_keys_iter = p_vec_keys->begin(); - while ( p_vec_keys_iter != p_vec_keys->end() ) + while( p_vec_keys_iter != p_vec_keys->end() ) { if ( p_vec_keys_iter->find( "mods/commands/", 0 ) != string::npos ) @@ -64,7 +63,7 @@ extern "C" s_content->append( "\n" ); s_content->append( "\n" ); s_content->append( "\n" ); - s_content->append( "
/" + s_command_name + "
" + p_conf->get_elem("chat.msgs.help." + s_command_name) + "
\n
\n" ); + s_content->append( "\n
\n" ); } } p_vec_keys_iter++; diff --git a/src/mods/html/yc_loggedin.cpp b/src/mods/html/yc_loggedin.cpp index a50993f..3b14dab 100644 --- a/src/mods/html/yc_loggedin.cpp +++ b/src/mods/html/yc_loggedin.cpp @@ -1,12 +1,11 @@ /*:* *: File: ./src/mods/html/yc_loggedin.cpp *: - *: yChat; Homepage: ychat.buetow.org; Version 0.9.0-CURRENT + *: yChat; Homepage: www.yChat.org; Version 0.8.3-CURRENT *: *: Copyright (C) 2003 Paul C. Buetow, Volker Richter *: Copyright (C) 2004 Paul C. Buetow *: Copyright (C) 2005 EXA Digital Solutions GbR - *: Copyright (C) 2006, 2007 Paul C. Buetow *: *: This program is free software; you can redistribute it and/or *: modify it under the terms of the GNU General Public License diff --git a/src/mods/html/yc_options.cpp b/src/mods/html/yc_options.cpp index ec269c8..502fdfa 100644 --- a/src/mods/html/yc_options.cpp +++ b/src/mods/html/yc_options.cpp @@ -1,12 +1,11 @@ /*:* *: File: ./src/mods/html/yc_options.cpp *: - *: yChat; Homepage: ychat.buetow.org; Version 0.9.0-CURRENT + *: yChat; Homepage: www.yChat.org; Version 0.8.3-CURRENT *: *: Copyright (C) 2003 Paul C. Buetow, Volker Richter *: Copyright (C) 2004 Paul C. Buetow *: Copyright (C) 2005 EXA Digital Solutions GbR - *: Copyright (C) 2006, 2007 Paul C. Buetow *: *: This program is free software; you can redistribute it and/or *: modify it under the terms of the GNU General Public License diff --git a/src/mods/html/yc_register.cpp b/src/mods/html/yc_register.cpp index c37ee02..5ae000c 100644 --- a/src/mods/html/yc_register.cpp +++ b/src/mods/html/yc_register.cpp @@ -1,12 +1,11 @@ /*:* *: File: ./src/mods/html/yc_register.cpp *: - *: yChat; Homepage: ychat.buetow.org; Version 0.9.0-CURRENT + *: yChat; Homepage: www.yChat.org; Version 0.8.3-CURRENT *: *: Copyright (C) 2003 Paul C. Buetow, Volker Richter *: Copyright (C) 2004 Paul C. Buetow *: Copyright (C) 2005 EXA Digital Solutions GbR - *: Copyright (C) 2006, 2007 Paul C. Buetow *: *: This program is free software; you can redistribute it and/or *: modify it under the terms of the GNU General Public License -- cgit v1.2.3