diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-14 18:39:38 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-14 18:39:38 +0000 |
commit | e80a1296a096ff2c495b3cd2a3913d5e5f6ec450 (patch) | |
tree | b8e37d6b9eeb0d0bed0ae4d4cbaa249631405c8d /src/commands | |
parent | 37fd031da06761c8a050105b55d73a8ab499fb74 (diff) |
Move static map of extensions into ServerInstance, add const-correctness
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11873 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/cmd_who.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/commands/cmd_who.cpp b/src/commands/cmd_who.cpp index 49fb26a2f..a0eeaac3d 100644 --- a/src/commands/cmd_who.cpp +++ b/src/commands/cmd_who.cpp @@ -105,7 +105,13 @@ bool CommandWho::whomatch(User* cuser, User* user, const char* matchtext) * -- w00t */ if (opt_metadata) - match = user->GetExtList().find(matchtext) != user->GetExtList().end(); + { + match = false; + const Extensible::ExtensibleStore& list = user->GetExtList(); + for(Extensible::ExtensibleStore::const_iterator i = list.begin(); i != list.end(); ++i) + if (InspIRCd::Match(i->first->key, matchtext)) + match = true; + } else if (opt_realname) match = InspIRCd::Match(user->fullname, matchtext); else if (opt_showrealhost) |