Changeset 409:26b18ea747f0
- Timestamp:
- 02/05/2010 12:15:13 AM (2 years ago)
- Author:
- Sidgyck <sidgyck@…>
- Branch:
- default
- rebase_source:
- f33a7060cfadcf71c01f472665d2401f18f46d63
- Message:
-
[NEW]: "!muc clean [count]" Clean conference (new entered participants cannot see previous messages.)
- Location:
- src/plugins/muc
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r401
|
r409
|
|
| 4 | 4 | mucplugin.h |
| 5 | 5 | nickasyncrequest.h |
| | 6 | cleanasyncrequest.h |
| 6 | 7 | ) |
| 7 | 8 | |
| … |
… |
|
| 34 | 35 | config/mucconfigurator.cpp |
| 35 | 36 | nickasyncrequest.cpp |
| | 37 | cleanasyncrequest.cpp |
| 36 | 38 | ) |
| 37 | 39 | |
| 38 | 40 | GLUXI_PLUGIN() |
| 39 | 41 | |
| 40 | | |
-
|
r407
|
r409
|
|
| 9 | 9 | #include "nickasyncrequest.h" |
| 10 | 10 | #include "muchistory.h" |
| | 11 | #include "cleanasyncrequest.h" |
| 11 | 12 | |
| 12 | 13 | #include "base/common.h" |
| … |
… |
|
| 41 | 42 | commands << "REPORT" << "MISSING" << "STAT"; |
| 42 | 43 | |
| 43 | | commands << "POKE" << "REALJID" << "INVITE"; |
| | 44 | commands << "POKE" << "REALJID" << "INVITE" << "CLEAN"; |
| 44 | 45 | pluginId=1; |
| 45 | 46 | |
| … |
… |
|
| 631 | 632 | return false; |
| 632 | 633 | } |
| 633 | | |
| | 634 | |
| | 635 | if (cmd=="CLEAN") |
| | 636 | { |
| | 637 | CleanAsyncRequest *req = new CleanAsyncRequest(this, new gloox::Stanza(s), arg); |
| | 638 | bot()->asyncRequests()->append(req); |
| | 639 | req->exec(); |
| | 640 | return true; |
| | 641 | } |
| | 642 | |
| 634 | 643 | if (cmd=="INVITE") |
| 635 | 644 | { |