Alias: add dump command from watch [$5] #591

Closed
opened 2026-10-05 04:31:56 +02:00 by adam · 2 comments
Owner

*watch has dump command which gives list of commands to send to ZNC for getting the same state with watch module:

2015-09-22 11:29:11+0300 < *watch> ---------------
2015-09-22 11:29:11+0300 < *watch> /msg *watch CLEAR
2015-09-22 11:29:11+0300 < *watch> /msg *watch ADD *!*@* *highlight *%nick%*
2015-09-22 11:29:11+0300 < *watch> /msg *watch SETSOURCES 1 * !##Mikaela !NickServ !ChanServ !GroupServ
2015-09-22 11:29:11+0300 < *watch> /msg *watch ADD *!*@* *ops *!ops*
2015-09-22 11:29:11+0300 < *watch> /msg *watch SETSOURCES 2 ##abgilpqt+ ##Mikaela #weechat-fi #akunapu #znc
2015-09-22 11:29:11+0300 < *watch> /msg *watch ADD *!*@AntiSpamMeta/. *antispammeta *!att-#znc-*
2015-09-22 11:29:11+0300 < *watch> /msg *watch SETSOURCES 3 #antispammeta #antispammeta-alerts
2015-09-22 11:29:11+0300 < *watch> /msg *watch ADD *!*@unaffiliated/fusl/bot/fnalerts *fnalerts *!att-rajaniemi*
2015-09-22 11:29:11+0300 < *watch> /msg *watch SETSOURCES 4 #fnalerts
2015-09-22 11:29:11+0300 < *watch> /msg *watch ADD *!*@unaffiliated/fusl/bot/fnalerts *fnalerts *!att-sinisalo*
2015-09-22 11:29:11+0300 < *watch> /msg *watch SETSOURCES 5 #fnalerts
2015-09-22 11:29:11+0300 < *watch> ---------------

*Alias having command for it too would help with syncing multiple ZNCs a lot or just backing up the commands or sharing them. I am personally running two ZNCs, one on somewhat latest git and another running the latest stable release which also might have other users.


  • Debian GNU/Linux 7.9 (wheezy)
  • ZNC 1.7.x-git-441-d66cb36 - http://znc.in
    • IPv6: yes, SSL: yes, DNS: threads, charset: yes

Did you help close this issue? Go claim the $5 bounty on Bountysource.

*watch has dump command which gives list of commands to send to ZNC for getting the same state with watch module: ``` 2015-09-22 11:29:11+0300 < *watch> --------------- 2015-09-22 11:29:11+0300 < *watch> /msg *watch CLEAR 2015-09-22 11:29:11+0300 < *watch> /msg *watch ADD *!*@* *highlight *%nick%* 2015-09-22 11:29:11+0300 < *watch> /msg *watch SETSOURCES 1 * !##Mikaela !NickServ !ChanServ !GroupServ 2015-09-22 11:29:11+0300 < *watch> /msg *watch ADD *!*@* *ops *!ops* 2015-09-22 11:29:11+0300 < *watch> /msg *watch SETSOURCES 2 ##abgilpqt+ ##Mikaela #weechat-fi #akunapu #znc 2015-09-22 11:29:11+0300 < *watch> /msg *watch ADD *!*@AntiSpamMeta/. *antispammeta *!att-#znc-* 2015-09-22 11:29:11+0300 < *watch> /msg *watch SETSOURCES 3 #antispammeta #antispammeta-alerts 2015-09-22 11:29:11+0300 < *watch> /msg *watch ADD *!*@unaffiliated/fusl/bot/fnalerts *fnalerts *!att-rajaniemi* 2015-09-22 11:29:11+0300 < *watch> /msg *watch SETSOURCES 4 #fnalerts 2015-09-22 11:29:11+0300 < *watch> /msg *watch ADD *!*@unaffiliated/fusl/bot/fnalerts *fnalerts *!att-sinisalo* 2015-09-22 11:29:11+0300 < *watch> /msg *watch SETSOURCES 5 #fnalerts 2015-09-22 11:29:11+0300 < *watch> --------------- ``` *Alias having command for it too would help with syncing multiple ZNCs a lot or just backing up the commands or sharing them. I am personally running two ZNCs, one on somewhat latest git and another running the latest stable release which also might have other users. --- - Debian GNU/Linux 7.9 (wheezy) - ZNC 1.7.x-git-441-d66cb36 - http://znc.in - IPv6: yes, SSL: yes, DNS: threads, charset: yes ## <bountysource-plugin> Did you help close this issue? Go claim the **[$5 bounty](https://www.bountysource.com/issues/26861477-alias-add-dump-command-from-watch?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github)** on [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github). </bountysource-plugin> <!-- github-sync-id:107668705 -->
adam closed this issue 2026-10-05 04:31:56 +02:00
Author
Owner

Removed "clear", because *alias doesn't care about positions so much.

The dump command might need to clear all commands in aliases to be imported just in case they already exists.

Removed "clear", because *alias doesn't care about positions so much. The dump command might need to clear all commands in aliases to be imported just in case they already exists. <!-- github-comment-id:143540348 -->
Author
Owner
Fixed by https://github.com/znc/znc/pull/1130 <!-- github-comment-id:145261721 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#591