"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "modules/m_svshost.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_svshost.c  (ircd-hybrid-8.2.27.tgz):m_svshost.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_svshost.c /*! \file m_svshost.c
* \brief Includes required functions for processing the SVSHOST command. * \brief Includes required functions for processing the SVSHOST command.
* \version $Id: m_svshost.c 9102 2020-01-01 09:58:57Z michael $ * \version $Id: m_svshost.c 9199 2020-01-23 17:49:06Z michael $
*/ */
#include "stdinc.h" #include "stdinc.h"
#include "client.h" #include "client.h"
#include "ircd.h" #include "ircd.h"
#include "send.h" #include "send.h"
#include "channel_mode.h" #include "channel_mode.h"
#include "parse.h" #include "parse.h"
#include "modules.h" #include "modules.h"
#include "user.h" #include "user.h"
skipping to change at line 55 skipping to change at line 55
* - parv[1] = nickname * - parv[1] = nickname
* - parv[2] = TS * - parv[2] = TS
* - parv[3] = host name * - parv[3] = host name
*/ */
static void static void
ms_svshost(struct Client *source_p, int parc, char *parv[]) ms_svshost(struct Client *source_p, int parc, char *parv[])
{ {
if (!HasFlag(source_p, FLAGS_SERVICE)) if (!HasFlag(source_p, FLAGS_SERVICE))
return; return;
struct Client *target_p; struct Client *target_p = find_person(source_p, parv[1]);
if ((target_p = find_person(source_p, parv[1])) == NULL) if (target_p == NULL)
return; return;
uintmax_t ts = strtoumax(parv[2], NULL, 10); uintmax_t ts = strtoumax(parv[2], NULL, 10);
if (ts && (ts != target_p->tsinfo)) if (ts && (ts != target_p->tsinfo))
return; return;
if (valid_hostname(parv[3]) == true) if (valid_hostname(parv[3]) == true)
user_set_hostmask(target_p, parv[3]); user_set_hostmask(target_p, parv[3]);
sendto_server(source_p, 0, 0, ":%s SVSHOST %s %ju %s", sendto_server(source_p, 0, 0, ":%s SVSHOST %s %ju %s",
skipping to change at line 97 skipping to change at line 97
} }
static void static void
module_exit(void) module_exit(void)
{ {
mod_del_cmd(&svshost_msgtab); mod_del_cmd(&svshost_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. 
4 lines changed or deleted 4 lines changed or added

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