From c78c669fdd67c183305f20cfae1ab97742419be6 Mon Sep 17 00:00:00 2001 From: griever Date: Sun, 20 Jan 2002 00:01:36 +0000 Subject: [PATCH] wtf.. --- Changes | 1 + src/modules/m_tkl.c | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Changes b/Changes index 1e5078a5f..0dcc5552b 100644 --- a/Changes +++ b/Changes @@ -1116,3 +1116,4 @@ v- Fixed some bugreport stuff - Recoded the module system somewhat, events are now 'stable' meaning if a module doesn't unload an event the IRCd will not crash. Also fixed a crash involving delayed unloads and cleaned up notices - Problem with sendto_ops and !aClient->user fix +- Fixed bug in m_tkl_line and various m_line functions (was checking for wrong # of paras) diff --git a/src/modules/m_tkl.c b/src/modules/m_tkl.c index fd6692dfb..d867b6654 100644 --- a/src/modules/m_tkl.c +++ b/src/modules/m_tkl.c @@ -140,7 +140,7 @@ DLLFUNC int m_gline(aClient *cptr, aClient *sptr, int parc, char *parv[]) return 0; } - if (parc < 4) + if (parc < 2) { sendto_one(sptr, err_str(ERR_NEEDMOREPARAMS), me.name, sptr->name, "GLINE"); @@ -169,7 +169,7 @@ DLLFUNC int m_gzline(aClient *cptr, aClient *sptr, int parc, char *parv[]) return 0; } - if (parc < 4) + if (parc < 2) { sendto_one(sptr, err_str(ERR_NEEDMOREPARAMS), me.name, sptr->name, "GZLINE"); @@ -198,7 +198,7 @@ DLLFUNC int m_shun(aClient *cptr, aClient *sptr, int parc, char *parv[]) return 0; } - if (parc < 4) + if (parc < 2) { sendto_one(sptr, err_str(ERR_NEEDMOREPARAMS), me.name, sptr->name, "GLINE"); @@ -227,7 +227,7 @@ DLLFUNC int m_tkline(aClient *cptr, aClient *sptr, int parc, char *parv[]) return 0; } - if (parc < 4) + if (parc < 2) { sendto_one(sptr, err_str(ERR_NEEDMOREPARAMS), me.name, sptr->name, "TKLINE"); @@ -256,7 +256,7 @@ DLLFUNC int m_tzline(aClient *cptr, aClient *sptr, int parc, char *parv[]) return 0; } - if (parc < 4) + if (parc < 2) { sendto_one(sptr, err_str(ERR_NEEDMOREPARAMS), me.name, sptr->name, "TZLINE"); @@ -306,7 +306,7 @@ DLLFUNC int m_tkl_line(aClient *cptr, aClient *sptr, int parc, char *parv[], ch return 0; } - if (parc < 4) + if (parc < 2) { return 0; }