]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_auditorium.cpp
Fix for bug #415, affects only trunk (wish i'd known this before i started!)
[user/henk/code/inspircd.git] / src / modules / m_auditorium.cpp
index de54a22bb59422264860cf827dda43c86d6171ca..a054a00ef879f0c9312e91bd87f5d70e12f959ba 100644 (file)
@@ -74,7 +74,7 @@ class ModuleAuditorium : public Module
        Priority Prioritize()
        {
                /* To ensure that we get priority over namesx for names list generation on +u channels */
-               return (Priority)ServerInstance->PriorityBefore("m_namesx.so");
+               return (Priority)ServerInstance->Modules->PriorityBefore("m_namesx.so");
        }
 
        virtual Version GetVersion()
@@ -111,7 +111,7 @@ class ModuleAuditorium : public Module
                        else
                        {
                                /* HELLOOO, IS ANYBODY THERE? -- nope, just us. */
-                               user->WriteServ("353 %s = %s :%s", user->nick, Ptr->name, user->nick);
+                               user->WriteServ("353 %s %c %s :%s", user->nick, Ptr->IsModeSet('s') ? '@' : Ptr->IsModeSet('p') ? '*' : '=', Ptr->name, user->nick);
                                user->WriteServ("366 %s %s :End of /NAMES list.", user->nick, Ptr->name);
                                return 1;
                        }