]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_gecosban.cpp
Don't sync filters defined in the config and expire them on rehash.
[user/henk/code/inspircd.git] / src / modules / m_gecosban.cpp
index 9b449da06a05477df15fad97ab525696b882ff43..ae399a81f713375ffae6c982dcd9ff2d074e6fd3 100644 (file)
@@ -31,7 +31,7 @@ class ModuleGecosBan : public Module
        {
                if ((mask.length() > 2) && (mask[0] == 'r') && (mask[1] == ':'))
                {
-                       if (InspIRCd::Match(user->fullname, mask.substr(2)))
+                       if (InspIRCd::Match(user->GetRealName(), mask.substr(2)))
                                return MOD_RES_DENY;
                }
                return MOD_RES_PASSTHRU;