From d0617b10606c94121b72bdcc3ef4db5980571f0e Mon Sep 17 00:00:00 2001 From: w00t Date: Fri, 4 Apr 2008 15:45:14 +0000 Subject: Fix this (thx danieldg and owine) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9322 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_rline.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/modules/extra/m_rline.cpp b/src/modules/extra/m_rline.cpp index 15bd60bc0..433c287c2 100644 --- a/src/modules/extra/m_rline.cpp +++ b/src/modules/extra/m_rline.cpp @@ -244,7 +244,7 @@ class ModuleRLine : public Module MatchOnNickChange = Conf.ReadFlag("rline", "matchonnickchange", 1); } - virtual int OnUserPostNick(User *user, const std::string &oldnick) + virtual void OnUserPostNick(User *user, const std::string &oldnick) { if (!IS_LOCAL(user)) return 0; @@ -252,12 +252,12 @@ class ModuleRLine : public Module if (!MatchOnNickChange) return 0; - XLine *r = ServerInstance->XLines->MatchesLine("R", user); + XLine *rl = ServerInstance->XLines->MatchesLine("R", user); - if (r) + if (rl) { // Bang! :D - r->Apply(user); + rl->Apply(user); } } -- cgit v1.2.3