Changeset 413:02aa4da1feb1
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r412
|
r413
|
|
| 644 | 644 | return true; |
| 645 | 645 | } |
| | 646 | if (!isFromConfModerator(s)) { |
| | 647 | reply(s,"You should be moderator to do this"); |
| | 648 | return true; |
| | 649 | } |
| 646 | 650 | parser.back(1); |
| 647 | 651 | arg = parser.joinBody(); |
| … |
… |
|
| 651 | 655 | m->addChild(new gloox::Tag("subject", arg.toStdString())); |
| 652 | 656 | bot()->client()->send(m); |
| 653 | | return true; |
| 654 | | } |
| 655 | | |
| | 657 | reply(s, "OK"); |
| | 658 | return true; |
| | 659 | } |
| | 660 | |
| 656 | 661 | if (cmd=="CLEAN") |
| 657 | 662 | { |
| … |
… |
|
| 661 | 666 | return true; |
| 662 | 667 | } |
| 663 | | |
| | 668 | |
| 664 | 669 | if (cmd=="INVITE") |
| 665 | 670 | { |