Software / code / prosody
Comparison
plugins/mod_admin_telnet.lua @ 5025:e68d1b85ee3a
mod_admin_telnet: Use module:get_option() instead of configmanager directly
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sat, 28 Jul 2012 01:17:23 +0100 |
| parent | 5024:d25e1b9332cc |
| child | 5026:c86a14414922 |
comparison
equal
deleted
inserted
replaced
| 5024:d25e1b9332cc | 5025:e68d1b85ee3a |
|---|---|
| 955 end | 955 end |
| 956 | 956 |
| 957 ------------- | 957 ------------- |
| 958 | 958 |
| 959 function printbanner(session) | 959 function printbanner(session) |
| 960 local option = config.get("*", "core", "console_banner"); | 960 local option = module:get_option("console_banner"); |
| 961 if option == nil or option == "full" or option == "graphic" then | 961 if option == nil or option == "full" or option == "graphic" then |
| 962 session.print [[ | 962 session.print [[ |
| 963 ____ \ / _ | 963 ____ \ / _ |
| 964 | _ \ _ __ ___ ___ _-_ __| |_ _ | 964 | _ \ _ __ ___ ___ _-_ __| |_ _ |
| 965 | |_) | '__/ _ \/ __|/ _ \ / _` | | | | | 965 | |_) | '__/ _ \/ __|/ _ \ / _` | | | | |