~ubuntu-branches/ubuntu/oneiric/inspircd/oneiric-security

« back to all changes in this revision

Viewing changes to src/modules/m_auditorium.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Darren Blaber
  • Date: 2008-04-21 12:51:01 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080421125101-m6lqhtn1wna8u2go
Tags: 1.1.19+dfsg-1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
        Priority Prioritize()
81
81
        {
82
82
                /* To ensure that we get priority over namesx for names list generation on +u channels */
83
 
                return (Priority)ServerInstance->PriorityBefore("m_namesx.so");
 
83
                return PRIORITY_FIRST;
84
84
        }
85
85
 
86
86
        virtual Version GetVersion()
97
97
        {
98
98
                if (Ptr->IsModeSet('u'))
99
99
                {
 
100
                        ServerInstance->Log(DEBUG,"AUDITORIUM: nameslist: %08lx", nameslist);
100
101
                        if (ShowOps)
101
102
                        {
102
103
                                /* Leave the names list alone, theyre an op
105
106
                                if (Ptr->GetStatus(user) >= STATUS_OP)
106
107
                                {
107
108
                                        nameslist = Ptr->GetUsers();
 
109
                                        ServerInstance->Log(DEBUG,"AUDITORIUM: new nameslist: %08lx", nameslist);
108
110
                                        return 0;
109
111
                                }
110
112
 
112
114
                                nl = *(Ptr->GetOppedUsers());
113
115
                                nl[user] = user->nick;
114
116
                                nameslist = &nl;
 
117
                                ServerInstance->Log(DEBUG,"AUDITORIUM: new nameslist: %08lx", nameslist);
115
118
                                return 0;
116
119
                        }
117
120
                        else