From 5d0f93255b36b6cb8f2a898e1cf9c11045bc1f4e Mon Sep 17 00:00:00 2001 From: griever Date: Fri, 28 Dec 2001 21:38:52 +0000 Subject: [PATCH] Grr.... --- Changes | 1 + include/msg.h | 4 ++-- src/packet.c | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index be11202d9..39d90171c 100644 --- a/Changes +++ b/Changes @@ -1044,3 +1044,4 @@ seen. gmtime warning still there - Reversed freeze bug fix, _NP means NON PORTABLE - Fixed a freeze problem with conf_deny_link - Fixed a bug under WinXP in the editor +- Someone removed tkl and opermotd from the command hash (breaks both commands) diff --git a/include/msg.h b/include/msg.h index 381664917..3e072233a 100644 --- a/include/msg.h +++ b/include/msg.h @@ -301,7 +301,7 @@ extern int m_nick(), m_error(), m_samode(); extern int m_invite(), m_svskill(), m_identify(); extern int m_chatops(), m_dns(); extern int m_gnotice(), m_goper(), m_globops(), m_locops(); -extern int m_protoctl(); +extern int m_protoctl(), m_tkl(); extern int m_motd(), m_user(), m_list(); extern int m_server(), m_info(), m_links(), m_summon(), m_stats(); extern int m_users(), m_version(), m_help(); @@ -322,7 +322,7 @@ extern int m_svsjoin(), m_sajoin(), m_svspart(), m_sapart(); extern int m_svsfline(); extern int m_vhost(), m_botmotd(), m_sjoin(); extern int m_umode2(), m_dccdeny(), m_undccdeny(); -extern int m_post(), m_cycle(); +extern int m_post(), m_cycle(), m_opermotd(); extern int m_module(), m_alias(); extern int m_hash(), m_rehash(), m_die(), m_restart(); #endif diff --git a/src/packet.c b/src/packet.c index 9fc35d08c..66829e945 100644 --- a/src/packet.c +++ b/src/packet.c @@ -134,6 +134,7 @@ void init_CommandHash(void) bzero(CommandHash, sizeof(CommandHash)); add_Command(MSG_MODE, TOK_MODE, m_mode, MAXPARA); + add_Command(MSG_OPERMOTD, TOK_OPERMOTD, m_opermotd, MAXPARA); add_CommandX(MSG_NICK, TOK_NICK, m_nick, MAXPARA, M_UNREGISTERED|M_USER|M_SERVER); add_CommandX(MSG_JOIN, TOK_JOIN, m_join, MAXPARA, M_USER); add_Command(MSG_ISON, TOK_ISON, m_ison, 1); @@ -206,6 +207,7 @@ void init_CommandHash(void) add_Command(MSG_NEWJOIN, TOK_JOIN, m_join, MAXPARA); add_Command(MSG_CYCLE, TOK_CYCLE, m_cycle, MAXPARA); add_Command(MSG_MODULE, TOK_MODULE, m_module, MAXPARA); + add_Command(MSG_TKL, TOK_TKL, m_tkl, MAXPARA); #ifdef DEVELOP_DEBUG for (i = 0; i <= 255; i++) {