mirror of
https://github.com/znc/znc.git
synced 2026-08-09 10:23:14 +02:00
Changed WATCH command to ADD
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@42 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+3
-3
@@ -243,7 +243,7 @@ public:
|
||||
|
||||
virtual void OnModCommand(const string& sCommand) {
|
||||
string sCmdName = CUtils::Token(sCommand, 0);
|
||||
if (strcasecmp(sCmdName.c_str(), "WATCH") == 0) {
|
||||
if (strcasecmp(sCmdName.c_str(), "ADD") == 0 || strcasecmp(sCmdName.c_str(), "WATCH") == 0) {
|
||||
Watch(CUtils::Token(sCommand, 1), CUtils::Token(sCommand, 2), CUtils::Token(sCommand, 3, true));
|
||||
} else if (strcasecmp(sCmdName.c_str(), "HELP") == 0) {
|
||||
Help();
|
||||
@@ -374,7 +374,7 @@ private:
|
||||
for (list<CWatchEntry>::iterator it = m_lsWatchers.begin(); it != m_lsWatchers.end(); it++, uIdx++) {
|
||||
CWatchEntry& WatchEntry = *it;
|
||||
|
||||
PutModule("/msg " + GetModNick() + " WATCH " + WatchEntry.GetHostMask() + " " + WatchEntry.GetTarget() + " " + WatchEntry.GetPattern());
|
||||
PutModule("/msg " + GetModNick() + " ADD " + WatchEntry.GetHostMask() + " " + WatchEntry.GetTarget() + " " + WatchEntry.GetPattern());
|
||||
|
||||
if (WatchEntry.GetSourcesStr().size()) {
|
||||
PutModule("/msg " + GetModNick() + " SETSOURCES " + CUtils::ToString(uIdx) + " " + WatchEntry.GetSourcesStr());
|
||||
@@ -423,7 +423,7 @@ private:
|
||||
Table.AddColumn("Description");
|
||||
|
||||
Table.AddRow();
|
||||
Table.SetCell("Command", "Watch <HostMask> [Target] [Pattern]");
|
||||
Table.SetCell("Command", "Add <HostMask> [Target] [Pattern]");
|
||||
Table.SetCell("Description", "Used to add an entry to watch for.");
|
||||
|
||||
Table.AddRow();
|
||||
|
||||
Reference in New Issue
Block a user