Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

On ZNC, there's a WATCH command (not the watch module) that is used as a server-side watchlist. It automatically adds people I've PM'd and notifies me when they come on/offline which gets quite annoying. I know I can do WATCH -nick to remove a nick, but I don't want to do that all the time to remove every nick it automatically adds. Is there any way to disable this WATCH command all together?

EDIT: The only actual access to ZNC I have is through the web administration interface. And I'm not an administrator, only a regular user, on the server.

share|improve this question
1  
Honestly, I'd ask at #znc on EFNet. That's where the dev team lives. You'll get the most help there. –  Bacon Bits Apr 9 '11 at 22:22
    
I've been looking at en.znc.in/wiki/Watch and don't interpret it as defaulting to the behavior you have described above. Is it non-standard or have you previously changed any settings? What's in /msg *watch list or /msg *watch dump for example –  PriceChild Apr 14 '11 at 8:37
    
@PriceChild: Whenever I try either of those, it says No such module [watch]. –  Wuffers Apr 14 '11 at 23:47

2 Answers 2

As ZNC is open-source, I downloaded and analyzed it.

For your information, the WATCH command is handled (surprise) by the Watch module, in the source file modules\watch.cpp. At line 240 of the file, you will find the following :

virtual void OnModCommand(const CString& sCommand) {
    CString sCmdName = sCommand.Token(0);
    if (sCmdName.Equals("ADD") || sCmdName.Equals("WATCH")) {
        Watch(sCommand.Token(1), sCommand.Token(2), sCommand.Token(3, true));

To nullify the WATCH command, you can either :

  1. Unload the Watch module, which supposedly makes the WATCH command inaccessible
  2. Change the string "WATCH" in the source to something else and re-compile
  3. Use a free hex editor to search the binary for the string "WATCH" (without the quotes) and change it, while keeping the same total number of characters, for example to "VATCH".

As I don't use ZNC, I cannot measure the impact of unloading the Watch module on its normal functioning. The other two solutions will need to be repeated for each new release of ZNC.

share|improve this answer
    
@Mark Szymanski: As your downvote and criticism of my previous answer was unjustified and incited others to do the same, I expect at least an apology. –  harrymc Apr 12 '11 at 7:08
    
The watch module is already unloaded, so it's odd that the WATCH command is still working. Also, I am not going to apologize. Your answer was wrong, and I downvoted. That's how the system works. Get over it. –  Wuffers Apr 12 '11 at 11:15
    
My answer was not wrong : It is probable that the Watch module is auto-loaded upon reference, which is the basis of your misconception that command and module are totally distinct. –  harrymc Apr 12 '11 at 12:02
    
I apologize for not illustrating this point before, but unfortunately I don't have access enough to the server to do the second or third solutions. And the first solution doesn't work. –  Wuffers Apr 14 '11 at 0:34
    
The problem is apparently that unloading the Watch module has really no effect, as it is reloaded on demand. One could try to delete its module watch.dll, but this could cause problems. Although if you have good enough access to do that, you should also be capable of modifying it as per solutions 2 and 3 or similar. –  harrymc Apr 14 '11 at 6:03

Reading the other answer/comments I get the idea that doing this server side isn't going to happen [easily]...

So... what about client side?

It is obviously dependent on your client, but can you ignore them from there?

share|improve this answer
    
I'll see if I could ignore it, I'll try when I get the chance. Thanks! –  Wuffers Apr 15 '11 at 12:35
    
I'm sorry to say that I cannot ignore it with my client (irssi). Thanks for the answer though! –  Wuffers Apr 16 '11 at 0:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.