Skip to content

Commit

Permalink
add imap/smtp checks
Browse files Browse the repository at this point in the history
  • Loading branch information
berthubert committed Apr 12, 2024
1 parent ede555c commit e02f6af
Show file tree
Hide file tree
Showing 4 changed files with 427 additions and 5 deletions.
8 changes: 5 additions & 3 deletions luabridge.cc
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,14 @@ void initLua()
});


/*
g_lua.set_function("smtp", [&](sol::table data) {
g_checkers.emplace_back(make_unique<SMTPChecker>(data));
});
*/


g_lua.set_function("imap", [&](sol::table data) {
g_checkers.emplace_back(make_unique<IMAPChecker>(data));
});

g_lua.set_function("addPushoverNotifier", [&](sol::table data) {
g_notifiers.emplace_back(make_shared<PushoverNotifier>(data));
return *g_notifiers.rbegin();
Expand Down
Loading

0 comments on commit e02f6af

Please sign in to comment.