mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Add a "Get" command to the notes module which allows you to lookup a note via the key
This commit is contained in:
@@ -159,8 +159,16 @@ public:
|
||||
} else {
|
||||
PutModule("Unable to delete note [" + sKey + "]");
|
||||
}
|
||||
} else if (sCmd.Equals("GET")) {
|
||||
CString sNote = GetNV(sLine.Token(1, true));
|
||||
|
||||
if (sNote.empty()) {
|
||||
PutModule("This note doesn't exist.");
|
||||
} else {
|
||||
PutModule(sNote);
|
||||
}
|
||||
} else {
|
||||
PutModule("Commands are: Help, List, Add <key> <note>, Del <key>, Mod <key> <note>");
|
||||
PutModule("Commands are: Help, List, Add <key> <note>, Del <key>, Mod <key> <note>, Get <key>");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user