"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "modules/m_whowas.c" between
ircd-hybrid-8.2.27.tgz and ircd-hybrid-8.2.28.tgz

About: IRCD-Hybrid is a Internet Relay Chat server.

m_whowas.c  (ircd-hybrid-8.2.27.tgz):m_whowas.c  (ircd-hybrid-8.2.28.tgz)
skipping to change at line 24 skipping to change at line 24
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
* USA * USA
*/ */
/*! \file m_whowas.c /*! \file m_whowas.c
* \brief Includes required functions for processing the WHOWAS command. * \brief Includes required functions for processing the WHOWAS command.
* \version $Id: m_whowas.c 9102 2020-01-01 09:58:57Z michael $ * \version $Id: m_whowas.c 9199 2020-01-23 17:49:06Z michael $
*/ */
#include "stdinc.h" #include "stdinc.h"
#include "list.h" #include "list.h"
#include "whowas.h" #include "whowas.h"
#include "client.h" #include "client.h"
#include "hash.h" #include "hash.h"
#include "irc_string.h" #include "irc_string.h"
#include "ircd.h" #include "ircd.h"
#include "numeric.h" #include "numeric.h"
skipping to change at line 109 skipping to change at line 109
* pointers. * pointers.
* \note Valid arguments for this command are: * \note Valid arguments for this command are:
* - parv[0] = command * - parv[0] = command
* - parv[1] = nickname * - parv[1] = nickname
* - parv[2] = count * - parv[2] = count
* - parv[3] = nickname/servername * - parv[3] = nickname/servername
*/ */
static void static void
m_whowas(struct Client *source_p, int parc, char *parv[]) m_whowas(struct Client *source_p, int parc, char *parv[])
{ {
static uintmax_t last_used; static uintmax_t last_used = 0;
if (parc < 2 || EmptyString(parv[1])) if (parc < 2 || EmptyString(parv[1]))
{ {
sendto_one_numeric(source_p, &me, ERR_NONICKNAMEGIVEN); sendto_one_numeric(source_p, &me, ERR_NONICKNAMEGIVEN);
return; return;
} }
if ((last_used + ConfigGeneral.pace_wait) > event_base->time.sec_monotonic) if ((last_used + ConfigGeneral.pace_wait) > event_base->time.sec_monotonic)
{ {
sendto_one_numeric(source_p, &me, RPL_LOAD2HI, "WHOWAS"); sendto_one_numeric(source_p, &me, RPL_LOAD2HI, "WHOWAS");
skipping to change at line 185 skipping to change at line 185
} }
static void static void
module_exit(void) module_exit(void)
{ {
mod_del_cmd(&whowas_msgtab); mod_del_cmd(&whowas_msgtab);
} }
struct module module_entry = struct module module_entry =
{ {
.version = "$Revision: 9102 $", .version = "$Revision: 9199 $",
.modinit = module_init, .modinit = module_init,
.modexit = module_exit, .modexit = module_exit,
}; };
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)