To create new wiki account, please join us on #znc at freenode and ask admins to create a wiki account for you. You can say thanks to spambots for this inconvenience.

Difference between revisions of "Broadcast"

From ZNC
Jump to navigation Jump to search
(Created page with "Category:External Modules {{External Module}} This global module provides the same functionality as the broadcast command (it sends a notice to all the users), but with a...")
 
>Efreak
m (update to github)
Line 5: Line 5:
  
 
== Getting the Code ==
 
== Getting the Code ==
The code for this module can be found in my [http://dead.sexypenguins.com/~efreak/znc/broadcast.cpp git repo] or [[Broadcast/Source|on the wiki]]
+
The code for this module can be found in my [https://github.com/Efreak/ZNC-Modules github] or [[Broadcast/Source|on the wiki]]
  
 
== Usage ==
 
== Usage ==

Revision as of 01:09, 12 June 2012

This global module provides the same functionality as the broadcast command (it sends a notice to all the users), but with a standard prefix.

Getting the Code

The code for this module can be found in my github or on the wiki

Usage

Arguments

This user module takes no traditional arguments. The global notice prefix can be set via the the argument. There are no other arguments available. If you don't include one, it defaults to "ZNC Global Message: "

Read loading modules to learn more about loading modules.

Commands

broadcast

Send a message with the set prefix.

/msg *broadcast broadcast MESSAGE

set

Change the prefix used to broadcast.

/msg *broadcast set PREFIX

This is easier than reloading the module, but will not save to config. To do this, you should reload with the message as a parameter, then use the *status command SaveConfig

show

Show the current message prefix.

/msg *broadcast show