Changeset 2244:63334cb25385
- Timestamp:
- 08/21/08 01:57:48 (3 months ago)
- Author:
- dunker@…
- Branch:
- default
- Message:
-
allow OPER users to install remote plugins
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r2158
|
r2244
|
|
| 218 | 218 | def handle_install(bot, ievent): |
| 219 | 219 | """ install <server> <dir> <plugin> .. install plugin from server """ |
| 220 | | if not bot.ownercheck(ievent): |
| 221 | | return |
| 222 | 220 | try: |
| 223 | 221 | (server, dirr, plug) = ievent.args |
| … |
… |
|
| 267 | 265 | def handle_installplug(bot, ievent): |
| 268 | 266 | """ remotely install a plugin """ |
| 269 | | if not bot.ownercheck(ievent): |
| 270 | | return |
| 271 | 267 | if not ievent.args: |
| 272 | 268 | ievent.missing('<plugname>') |
| … |
… |
|
| 366 | 362 | def handle_installlist(bot, ievent): |
| 367 | 363 | """ install-list .. list the available remote installable plugs """ |
| 368 | | if not bot.ownercheck(ievent): |
| 369 | | return |
| 370 | 364 | errors = [] |
| 371 | 365 | result = [] |
| … |
… |
|
| 399 | 393 | |
| 400 | 394 | def handle_installclean(bot, ievent): |
| 401 | | if not bot.ownercheck(ievent): |
| 402 | | return |
| 403 | 395 | import glob |
| 404 | 396 | removed = [] |