inspircd

A modular C++ IRC daemon (ircd). https://www.inspircd.org/
Log | Files | Refs | README

commit 1003c593bfd455734a8f39f137d4ce68e7e87ca8
parent c02b30b96e48fb4b01c275c1b8b49d69ad2ebd4a
Author: linuxdaemon <linuxdaemon@snoonet.org>
Date:   Tue, 12 Mar 2019 12:04:01 -0500

Rename GetFlagIndex -> GetFieldIndex

Diffstat:
Minclude/modules/who.h | 2+-
Msrc/coremods/core_who.cpp | 2+-
Msrc/modules/m_hideoper.cpp | 2+-
Msrc/modules/m_namesx.cpp | 2+-
4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/modules/who.h b/include/modules/who.h @@ -80,7 +80,7 @@ class Who::Request * @param out The index will be stored in this value * @return True if the field is available, false otherwise */ - virtual bool GetFlagIndex(char flag, size_t& out) const = 0; + virtual bool GetFieldIndex(char flag, size_t& out) const = 0; protected: Request() diff --git a/src/coremods/core_who.cpp b/src/coremods/core_who.cpp @@ -39,7 +39,7 @@ static const char who_field_order[] = "cuhsnf"; struct WhoData : public Who::Request { - bool GetFlagIndex(char flag, size_t& out) const CXX11_OVERRIDE + bool GetFieldIndex(char flag, size_t& out) const CXX11_OVERRIDE { if (!whox) { diff --git a/src/modules/m_hideoper.cpp b/src/modules/m_hideoper.cpp @@ -124,7 +124,7 @@ class ModuleHideOper return MOD_RES_DENY; size_t flag_index; - if (!request.GetFlagIndex('f', flag_index)) + if (!request.GetFieldIndex('f', flag_index)) return MOD_RES_PASSTHRU; // hide the "*" that marks the user as an oper from the /WHO line diff --git a/src/modules/m_namesx.cpp b/src/modules/m_namesx.cpp @@ -85,7 +85,7 @@ class ModuleNamesX return MOD_RES_PASSTHRU; size_t flag_index; - if (!request.GetFlagIndex('f', flag_index)) + if (!request.GetFieldIndex('f', flag_index)) return MOD_RES_PASSTHRU; // #chan ident localhost insp22.test nick H@ :0 Attila