Changeset 291:08cfed5ae472
- Timestamp:
- 07/06/2008 12:05:50 PM (4 years ago)
- Author:
- Dmitry Nezhevenko <dion@…>
- Branch:
- default
- Message:
-
Forward all presences with type='error' to bot owner
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r290
|
r291
|
|
| 188 | 188 | confFull=confFull.section('/',0,0); |
| 189 | 189 | join(confFull); |
| | 190 | } |
| | 191 | else |
| | 192 | { |
| | 193 | gloox::JID ownerJid(DataStorage::instance()->getStdString("access/owner")); |
| | 194 | gloox::Stanza *outgoing=gloox::Stanza::createMessageStanza(ownerJid, |
| | 195 | QString("Error presence from \"%1\". Looks like I can't join:\n%2") |
| | 196 | .arg(QString::fromStdString(s->from().bare())) |
| | 197 | .arg(QString::fromStdString(s->xml())).toStdString()); |
| | 198 | bot()->client()->send(outgoing); |
| 190 | 199 | } |
| 191 | 200 | return; |