diff options
| author | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:47 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:47 +0200 |
| commit | ee315a27b72dc967a8a90f132725b7c8e4fd9fba (patch) | |
| tree | 349db556063b17a3c84dc9348495bd11d73b0417 /src | |
| parent | 630af0ed6c0af69c7df2e45aef7a87722a3c00c0 (diff) | |
tagging ychat-0.7.5ychat-0.7.5
Diffstat (limited to 'src')
| -rw-r--r-- | src/CVS/Entries | 26 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/Makefile.in | 0 | ||||
| -rw-r--r-- | src/chat/CVS/Entries | 26 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/chat/base.h | 182 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/chat/base.tmpl | 70 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/chat/chat.cpp | 498 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/chat/chat.h | 97 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/chat/gcol.cpp | 185 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/chat/gcol.h | 55 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/chat/perm.cpp | 93 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/chat/perm.h | 69 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/chat/room.cpp | 121 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/chat/room.h | 131 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/chat/sess.cpp | 49 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/chat/sess.h | 46 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/chat/sman.cpp | 150 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/chat/sman.h | 54 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/chat/user.cpp | 708 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/chat/user.h | 261 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/cli/cli.cpp | 526 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/cli/cli.h | 54 | ||||
| -rw-r--r-- | src/conf/CVS/Entries | 4 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/conf/conf.cpp | 227 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/conf/conf.h | 42 | ||||
| -rwxr-xr-x | src/configure | 312 | ||||
| -rw-r--r-- | src/contrib/crypt/md5.cpp | 357 | ||||
| -rw-r--r-- | src/contrib/crypt/md5.h | 39 | ||||
| -rw-r--r-- | src/contrib/crypt/md5crypt.cpp | 257 | ||||
| -rw-r--r-- | src/contrib/xml/tinyxml.cpp | 1703 | ||||
| -rw-r--r-- | src/contrib/xml/tinyxml.h | 2266 | ||||
| -rw-r--r-- | src/contrib/xml/tinyxmlerror.cpp | 68 | ||||
| -rw-r--r-- | src/contrib/xml/tinyxmlparser.cpp | 2708 | ||||
| -rw-r--r-- | src/data/CVS/Entries | 8 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/data/con.cpp | 50 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/data/con.h | 36 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/data/con_base.cpp | 24 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/data/con_base.h | 34 | ||||
| -rw-r--r-- | src/data/data.cpp | 161 | ||||
| -rw-r--r-- | src/data/data.h | 50 | ||||
| -rw-r--r-- | src/data/data_base.cpp | 148 | ||||
| -rw-r--r-- | src/data/data_base.h | 66 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/glob.h | 199 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/html.cpp | 184 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/html.h | 66 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/incl.h | 25 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/logd.cpp | 205 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/logd.h | 58 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/main.cpp | 238 | ||||
| -rw-r--r-- | src/maps/CVS/Entries | 18 | ||||
| -rw-r--r-- | src/maps/hmap.tmpl | 4 | ||||
| -rw-r--r-- | src/maps/mtools.h | 26 | ||||
| -rw-r--r-- | src/maps/mtools.tmpl | 29 | ||||
| -rw-r--r-- | src/maps/nmap.h | 3 | ||||
| -rw-r--r-- | src/maps/smap.h | 2 | ||||
| -rw-r--r-- | src/maps/smap.tmpl | 4 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/modl.cpp | 184 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/modl.h | 58 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/Makefile | 0 | ||||
| -rw-r--r-- | src/mods/commands/Makefile | 6 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/commands/Makefile.in | 2 | ||||
| -rw-r--r-- | src/mods/commands/yc_about.cpp | 98 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/commands/yc_all.cpp | 101 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/commands/yc_away.cpp | 150 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/commands/yc_col.cpp | 167 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/commands/yc_compopt.cpp | 45 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/commands/yc_exec.cpp | 108 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/commands/yc_fake.cpp | 67 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/commands/yc_getroom.cpp | 94 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/commands/yc_getrusage.cpp | 93 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/commands/yc_help.cpp | 105 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/commands/yc_invisible.cpp | 69 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/commands/yc_j.cpp | 203 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/commands/yc_ko.cpp | 112 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/commands/yc_m.cpp | 89 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/commands/yc_md5.cpp | 108 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/commands/yc_me.cpp | 77 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/commands/yc_morph.cpp | 101 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/commands/yc_msg.cpp | 128 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/commands/yc_q.cpp | 51 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/commands/yc_reload.cpp | 57 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/commands/yc_ren.cpp | 132 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/commands/yc_s.cpp | 105 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/commands/yc_set.cpp | 199 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/commands/yc_template.cpp | 51 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/commands/yc_time.cpp | 55 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/commands/yc_topic.cpp | 162 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/commands/yc_uptime.cpp | 55 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/commands/yc_users.cpp | 55 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/commands/yc_version.cpp | 45 | ||||
| -rw-r--r-- | src/mods/html/CVS/Entries | 12 | ||||
| -rw-r--r-- | src/mods/html/Makefile | 3 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/html/Makefile.in | 4 | ||||
| -rw-r--r-- | src/mods/html/yc_admin.cpp | 143 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/html/yc_colors.cpp | 76 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/html/yc_help.cpp | 100 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/html/yc_loggedin.cpp | 55 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/html/yc_options.cpp | 103 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/mods/html/yc_register.cpp | 189 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/msgs.h | 72 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/name.cpp | 54 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/name.h | 40 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/ncur/menu.cpp | 172 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/ncur/menu.h | 52 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/ncur/ncur.cpp | 391 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/ncur/ncur.h | 75 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/reqp.cpp | 532 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/reqp.h | 77 | ||||
| -rw-r--r-- | src/sock/CVS/Entries | 4 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/sock/sock.cpp | 609 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/sock/sock.h | 108 | ||||
| -rw-r--r-- | src/stats.cpp | 1 | ||||
| -rw-r--r-- | src/stats.h | 2 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/thrd/pool.cpp | 295 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/thrd/pool.h | 92 | ||||
| -rw-r--r-- | src/thrd/thro.cpp | 47 | ||||
| -rw-r--r-- | src/thrd/thro.h | 48 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/time/timo.cpp | 44 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/time/timo.h | 36 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/time/timr.cpp | 189 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/time/timr.h | 105 | ||||
| -rw-r--r-- | src/tool/dir.cpp | 68 | ||||
| -rw-r--r-- | src/tool/dir.h | 48 | ||||
| -rw-r--r-- | src/tool/tool.cpp | 280 | ||||
| -rw-r--r-- | src/tool/tool.h | 52 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/wrap.cpp | 157 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/wrap.h | 142 |
126 files changed, 8594 insertions, 12037 deletions
diff --git a/src/CVS/Entries b/src/CVS/Entries index cda8aa6..7009aff 100644 --- a/src/CVS/Entries +++ b/src/CVS/Entries @@ -1,19 +1,19 @@ /Makefile.in/1.22/Tue Sep 7 17:14:39 2004// -/configure/1.34/Thu Feb 17 00:25:26 2005// -/glob.h/1.57/Wed Feb 16 23:46:56 2005// -/html.cpp/1.19/Wed Feb 16 21:28:55 2005// -/html.h/1.9/Wed Feb 16 21:28:55 2005// -/incl.h/1.5/Wed Feb 16 22:36:32 2005// -/logd.cpp/1.10/Wed Feb 16 21:28:55 2005// -/logd.h/1.8/Wed Feb 16 21:28:55 2005// -/main.cpp/1.32/Thu Feb 17 18:09:42 2005// -/modl.cpp/1.17/Wed Feb 16 22:51:13 2005// -/modl.h/1.9/Wed Feb 16 22:51:13 2005// -/msgs.h/1.170/Thu Feb 17 18:09:42 2005// +/configure/1.28/Fri Jan 7 21:00:19 2005// +/glob.h/1.51/Sun Feb 13 03:53:35 2005// +/html.cpp/1.18/Thu Feb 10 16:07:18 2005// +/html.h/1.8/Fri Jan 7 21:00:19 2005// +/incl.h/1.4/Fri Jan 7 21:00:19 2005// +/logd.cpp/1.9/Sun Feb 6 16:38:36 2005// +/logd.h/1.7/Sun Feb 6 16:38:36 2005// +/main.cpp/1.30/Thu Feb 10 19:55:24 2005// +/modl.cpp/1.16/Fri Jan 7 21:00:19 2005// +/modl.h/1.8/Thu Nov 18 13:41:47 2004// +/msgs.h/1.161/Mon Feb 14 20:09:50 2005// /name.cpp/1.7/Fri Jan 7 21:00:19 2005// /name.h/1.5/Fri Jan 7 21:00:19 2005// -/reqp.cpp/1.35/Wed Feb 16 21:28:55 2005// -/reqp.h/1.13/Wed Feb 16 21:28:55 2005// +/reqp.cpp/1.34/Thu Feb 10 16:07:18 2005// +/reqp.h/1.12/Sun Feb 6 16:38:36 2005// /stats.cpp/1.9/Fri Jan 7 21:00:19 2005// /stats.h/1.6/Fri Jan 7 21:00:19 2005// /wrap.cpp/1.15/Wed Feb 9 22:42:58 2005// diff --git a/src/Makefile.in b/src/Makefile.in index 0382389..0382389 100644..100755 --- a/src/Makefile.in +++ b/src/Makefile.in diff --git a/src/chat/CVS/Entries b/src/chat/CVS/Entries index 17e5803..8d2fcbd 100644 --- a/src/chat/CVS/Entries +++ b/src/chat/CVS/Entries @@ -1,17 +1,17 @@ -/base.h/1.6/Wed Feb 16 22:36:32 2005// -/base.tmpl/1.5/Wed Feb 16 22:36:32 2005// -/chat.cpp/1.17/Wed Feb 16 23:50:35 2005// -/chat.h/1.10/Wed Feb 16 22:36:32 2005// -/gcol.cpp/1.6/Wed Feb 16 23:16:58 2005// -/gcol.h/1.4/Wed Feb 16 22:51:13 2005// -/perm.cpp/1.9/Wed Feb 16 23:16:58 2005// -/perm.h/1.7/Wed Feb 16 23:16:58 2005// +/base.h/1.5/Fri Jan 7 21:00:19 2005// +/base.tmpl/1.4/Thu Nov 18 13:41:47 2004// +/chat.cpp/1.14/Fri Jan 7 21:00:19 2005// +/chat.h/1.8/Fri Jan 7 21:00:19 2005// +/gcol.cpp/1.4/Thu Nov 18 13:41:47 2004// +/gcol.h/1.3/Thu Nov 18 13:41:47 2004// +/perm.cpp/1.7/Thu Nov 18 13:41:47 2004// +/perm.h/1.5/Thu Nov 18 13:41:47 2004// /room.cpp/1.9/Sun Feb 6 16:38:36 2005// -/room.h/1.6/Wed Feb 16 22:36:32 2005// +/room.h/1.5/Sun Feb 6 16:38:36 2005// /sess.cpp/1.5/Tue Jan 4 18:31:35 2005// /sess.h/1.5/Tue Jan 4 18:31:35 2005// -/sman.cpp/1.10/Wed Feb 16 22:51:13 2005// -/sman.h/1.5/Wed Feb 16 22:51:13 2005// -/user.cpp/1.14/Wed Feb 16 22:51:13 2005// -/user.h/1.8/Wed Feb 16 23:59:16 2005// +/sman.cpp/1.9/Tue Jan 4 18:31:35 2005// +/sman.h/1.4/Tue Jan 4 18:31:35 2005// +/user.cpp/1.13/Mon Feb 14 20:09:50 2005// +/user.h/1.6/Fri Jan 7 21:00:19 2005// D diff --git a/src/chat/base.h b/src/chat/base.h index bfdd6f6..dc44c69 100644..100755 --- a/src/chat/base.h +++ b/src/chat/base.h @@ -1,117 +1,89 @@ -/*:* - *: File: ./src/chat/base.h - *: - *: yChat; Homepage: www.yChat.org; Version 0.7.9.5-RELEASE - *: - *: Copyright (C) 2003 Paul C. Buetow, Volker Richter - *: Copyright (C) 2004 Paul C. Buetow - *: Copyright (C) 2005 EXA Digital Solutions GbR - *: - *: 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 2 - *: of the License, or (at your option) any later version. - *: - *: 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. - *:*/ - +// template class data declaration; #include "../incl.h" #ifndef BASE_H #define BASE_H -#include <map> -#include "../maps/nhashmap.h" +#include "../maps/smap.h" template<class type> -class base : public nhashmap<type*> +class base : public smap<type*,string> { -protected: - void dumpit(); - public: - base(); - ~base(); - - static string to_lower( string s ) - { - string s_tmp(""); - for(int i=0;i < s.size() ;i++) - s_tmp=s_tmp+(char)tolower(s.at(i)); - return s_tmp; - } - - virtual type* get_elem( string s_name, bool &b_found ); // get a element. - virtual type* get_elem( string s_name ); - virtual void add_elem( type* p_type ); // add a element. - - // chat::msg_post sends to all users of the system a message. - // room::msg_post sends to all users of the room a message. - // user::msg_post sends to the user a message. - virtual void msg_post( string *s_msg ) - { - nhashmap<type*>::run_func( &base<type>::msg_post_ , (void*)s_msg ); - } - - static void msg_post_( type* type_obj, void* v_arg ) - { - type_obj -> msg_post( (string*) v_arg ); - } - - virtual void check_timeout( int* i_timeout_settings ) - { - nhashmap<type*>::run_func( &base<type>::check_timeout_ , (void*)i_timeout_settings ); - } - - static void check_timeout_( type* type_obj, void* v_arg ) - { - type_obj -> check_timeout( (int*) v_arg );< |
