mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-07 07:23:13 +02:00
Fixed an oper bug where locops didn't get a hidden host
This commit is contained in:
@@ -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)
|
||||
|
||||
+4
-10
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user