Changeset 413:02aa4da1feb1

Show
Ignore:
Timestamp:
06/20/2010 05:40:07 PM (20 months ago)
Author:
Sidgyck <sidgyck@…>
Branch:
default
Message:

[FIX]: "!muc topic" now available for moderators and up only

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/plugins/muc/mucplugin.cpp

    r412 r413  
    644644                        return true; 
    645645                } 
     646                if (!isFromConfModerator(s)) { 
     647                        reply(s,"You should be moderator to do this"); 
     648                        return true; 
     649                } 
    646650                parser.back(1); 
    647651                arg = parser.joinBody(); 
     
    651655                m->addChild(new gloox::Tag("subject", arg.toStdString())); 
    652656                bot()->client()->send(m); 
    653                 return true; 
    654         } 
    655          
     657                reply(s, "OK"); 
     658                return true; 
     659        } 
     660 
    656661        if (cmd=="CLEAN") 
    657662        { 
     
    661666                return true; 
    662667        } 
    663          
     668 
    664669        if (cmd=="INVITE") 
    665670        {