Changeset 278:8cc7426dab80

Show
Ignore:
Timestamp:
06/15/2008 02:26:24 PM (4 years ago)
Author:
Dmitry Nezhevenko <dion@…>
Branch:
default
Message:

Remove !misc sayjidgc, require admin privileges for !muc sayjid if enabled

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/plugins/misc/miscplugin.cpp

    r255 r278  
    1717        if (!sayJidDisabled_) 
    1818        { 
    19                 commands << "SAYJID" << "SAYJIDGC"; 
     19                commands << "SAYJID"; 
    2020        } 
    2121} 
     
    4747                return true; 
    4848        } 
    49         if (!sayJidDisabled_ && (cmd=="SAYJID" || cmd=="SAYJIDGC"))       
     49        if (!sayJidDisabled_ && cmd=="SAYJID")    
    5050        { 
    51                 if (getRole(s)<ROLE_MODERATOR) 
     51                if (getRole(s)<ROLE_ADMIN) 
    5252                { 
    5353                        reply(s,"You should be moderator to do this"); 
     
    6262                QString body=parser.joinBody(); 
    6363                gloox::Stanza* out=gloox::Stanza::createMessageStanza(gloox::JID(dst.toStdString()),body.toStdString()); 
    64                 if (cmd=="SAYJIDGC") 
    65                         out->addAttribute("type","groupchat"); 
    6664                bot()->client()->send(out); 
    6765                return true;