Software / code / prosody
Comparison
prosodyctl @ 5101:a94c43cad081
prosodyctl: Use util.prosodyctl.deluser
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 25 Aug 2012 01:32:26 +0200 |
| parent | 5024:d25e1b9332cc |
| child | 5134:43c5227fdd3b |
comparison
equal
deleted
inserted
replaced
| 5100:65207b768f60 | 5101:a94c43cad081 |
|---|---|
| 364 if not prosodyctl.user_exists { user = user, host = host } then | 364 if not prosodyctl.user_exists { user = user, host = host } then |
| 365 show_message [[That user does not exist on this server]] | 365 show_message [[That user does not exist on this server]] |
| 366 return 1; | 366 return 1; |
| 367 end | 367 end |
| 368 | 368 |
| 369 local ok, msg = prosodyctl.passwd { user = user, host = host }; | 369 local ok, msg = prosodyctl.deluser { user = user, host = host }; |
| 370 | 370 |
| 371 if ok then return 0; end | 371 if ok then return 0; end |
| 372 | 372 |
| 373 show_message(error_messages[msg]) | 373 show_message(error_messages[msg]) |
| 374 return 1; | 374 return 1; |