Keep track of the targets which have already been notified of a matching
message, and do not notify them again if other patterns in the same
message match also. For example, consider the following match patterns:
1) <*watch> /msg *watch ADD *!*@* *highlight *%nick%*
2) <*watch> /msg *watch ADD *!*@* *highlight *testuser*
3) <*watch> /msg *watch ADD *!*@* *testhilights *test*
If %nick% ist something like "testuser123", all of the these patterns
match the following message:
<otheruser> hey testuser123, look at this: ...
Without this patch, the watch module would generate two notify messages
for target *highlight, and one notify message for target *testhilights.
This is unneccessary because patterns 1 and 2 will result in
generating the same notify message twice for target *highlight.
By using a std::set, the implementation in this patch keeps track of
which targets have already been notified and does not notify them more
than once.
Custom modules compiled for older ZNC can crash ZNC.
Because now ZNC checks for list of available modules on startup in order
to check whether it's installed or not, it can crash right on startup.
Now it outputs nice message about checking for modules before that.
See github issue #172
In HTML one <form> can't be inside another one...
In XHTML it works...
Thanks to skydrome for reporting this.
Also I tried to fix listeners editor, as they used nested forms too...
But it seems that I messed up the whole table.
Let someone more skilled in HTML fix this broken layout.
At least buttons themselves work now.
Only his changes to the core are presented here.
Unfortunately, the skin itself looks ugly on Opera,
and simply doesn't work on Firefox...
Merge branch 'master' into znc-ation
Conflicts:
modules/data/lastseen/tmpl/lastseen_WebadminUser.tmpl
modules/data/webadmin/tmpl/settings.tmpl
Commit b1593238d5 started using the module pointer before the NULL
check. This caused crashes whenever someone (even without a login!) accessed a
web page on znc for a module which didn't exist.
Thanks to J0rd4n` for reporting this to us.
Signed-off-by: Uli Schlachter <psychon@znc.in>