From 3c11cbb999e4e329fef83bfb177aa0d09e116553 Mon Sep 17 00:00:00 2001 From: codemastr Date: Sat, 13 Jul 2002 16:56:01 +0000 Subject: [PATCH] Fixed an oper bug where locops didn't get a hidden host --- Changes | 1 + src/modules/m_oper.c | 14 ++++---------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/Changes b/Changes index 1dec90d64..92de6cf76 100644 --- a/Changes +++ b/Changes @@ -1366,3 +1366,4 @@ seen. gmtime warning still there - Added extras/channeldumper.c - Fixed an alias {} bug reported by Keeper (prefix was :nick not :nick!user@host which screwed up some bots) - Fixed a +sp bug reported by Zerwas (#0000160) fixed by JK and Luke +- Fixed a bug where locops did not receive a hidden host reported by breathingman (#0000221) diff --git a/src/modules/m_oper.c b/src/modules/m_oper.c index 009a372c1..35e8bd4e5 100644 --- a/src/modules/m_oper.c +++ b/src/modules/m_oper.c @@ -224,12 +224,6 @@ DLLFUNC int m_oper(aClient *cptr, aClient *sptr, int parc, char *parv[]) { MSG_SWHOIS, TOK_SWHOIS, "%s :%s", sptr->name, aconf->swhois); } -#ifdef POTVINIZE /* scary shit below */ - -/* Begone evil demons! */ - -#else - /* new oper code */ sptr->umodes |= OPER_MODES; @@ -249,7 +243,6 @@ DLLFUNC int m_oper(aClient *cptr, aClient *sptr, int parc, char *parv[]) { } sptr->oflag = aconf->oflags; - if ((aconf->oflags & OFLAG_HIDE) && iNAH && !BadPtr(host)) { iNAH_host(sptr, host); SetHidden(sptr); @@ -258,6 +251,10 @@ DLLFUNC int m_oper(aClient *cptr, aClient *sptr, int parc, char *parv[]) { if (!IsOper(sptr)) { sptr->umodes |= UMODE_LOCOP; + if ((aconf->oflags & OFLAG_HIDE) && iNAH && !BadPtr(locop_host)) { + iNAH_host(sptr, locop_host); + SetHidden(sptr); + } sendto_ops("%s (%s@%s) is now a local operator (o)", parv[0], sptr->user->username, IsHidden(sptr) ? sptr->user->virthost : sptr->user->realhost); @@ -278,9 +275,6 @@ DLLFUNC int m_oper(aClient *cptr, aClient *sptr, int parc, char *parv[]) { user->virthost : sptr->user->realhost, announce); } - -#endif - if (!aconf->snomask) set_snomask(sptr, SNO_DEFOPER); else