Skip to content

Commit

Permalink
mod_admin_telnet: reset line if bye() is passed bye, quit or exit.
Browse files Browse the repository at this point in the history
  • Loading branch information
maranda committed Apr 22, 2020
1 parent eafe877 commit 977ffd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/mod_admin_telnet.lua
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ end
-- These are simple commands, not valid standalone in Lua

function commands.bye(session, line)
if line == "bye\r\n" or line == "quit\r\n" or line == "exit\r\n" then line = nil; end
session.print(line or "See you! :)");
session.disconnect();
end
Expand Down

0 comments on commit 977ffd4

Please sign in to comment.