From e91c2a8eed89c855b5d049eb1aaef52bcf232b6e Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Thu, 1 May 2003 19:52:06 +0000 Subject: [PATCH] - Made SVSNOOP work. Reported by Lx (#0000933). [not dangerous to fix ;P] --- Changes | 2 ++ src/modules/m_svsnoop.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index b85f5e4f1..6851e480f 100644 --- a/Changes +++ b/Changes @@ -2109,3 +2109,5 @@ seen. gmtime warning still there - Module coders: I've changed HOOKTYPE_PRE_LOCAL_CONNECT, you must now return '0' to let the client pass and anything else is threated like a return, so you must return FLUSH_BUFFER if you just called exit_client, this fixes a read-already-freed-mem bug. +- Added warning message if set::scan exists +- Made SVSNOOP work. Reported by Lx (#0000933). diff --git a/src/modules/m_svsnoop.c b/src/modules/m_svsnoop.c index 088f930f8..a1611156c 100644 --- a/src/modules/m_svsnoop.c +++ b/src/modules/m_svsnoop.c @@ -106,7 +106,7 @@ int m_svsnoop(aClient *cptr, aClient *sptr, int parc, char *parv[]) { aClient *acptr; - if (!(check_registered(sptr) && IsULine(sptr) && parc > 2)) + if (!(IsULine(sptr) && parc > 2)) return 0; /* svsnoop bugfix --binary */ if (hunt_server_token(cptr, sptr, MSG_SVSNOOP, TOK_SVSNOOP, "%s :%s", 1, parc,