mirror of
https://github.com/znc/znc.git
synced 2026-08-09 02:12:56 +02:00
Add a "Get" command to the notes module which allows you to lookup a note via the key
This commit is contained in:
+9
-1
@@ -159,8 +159,16 @@ public:
|
|||||||
} else {
|
} else {
|
||||||
PutModule("Unable to delete note [" + sKey + "]");
|
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 {
|
} 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