<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.anope.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.anope.org/index.php?action=history&amp;feed=atom&amp;title=2.0%2FModules%2Fos_news</id>
		<title>2.0/Modules/os news - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.anope.org/index.php?action=history&amp;feed=atom&amp;title=2.0%2FModules%2Fos_news"/>
		<link rel="alternate" type="text/html" href="https://wiki.anope.org/index.php?title=2.0/Modules/os_news&amp;action=history"/>
		<updated>2026-05-29T18:40:12Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.4</generator>

	<entry>
		<id>//wiki.anope.org/index.php?title=2.0/Modules/os_news&amp;diff=798&amp;oldid=prev</id>
		<title>Azander: Created page with &quot;{{Language|2.0/Modules/os_news}} {{Syntax|os_news|OperServ|Anope}}  == &lt;div class=&quot;moduleheader&quot;&gt;Description&lt;/div&gt; == ;LOGONNEWS :Edits or displays the list of logon news mess...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.anope.org/index.php?title=2.0/Modules/os_news&amp;diff=798&amp;oldid=prev"/>
				<updated>2014-05-08T22:00:35Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Language|2.0/Modules/os_news}} {{Syntax|os_news|OperServ|Anope}}  == &amp;lt;div class=&amp;quot;moduleheader&amp;quot;&amp;gt;Description&amp;lt;/div&amp;gt; == ;LOGONNEWS :Edits or displays the list of logon news mess...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Language|2.0/Modules/os_news}}&lt;br /&gt;
{{Syntax|os_news|OperServ|Anope}}&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;div class=&amp;quot;moduleheader&amp;quot;&amp;gt;Description&amp;lt;/div&amp;gt; ==&lt;br /&gt;
;LOGONNEWS :Edits or displays the list of logon news messages.  When a user connects to the network, these messages will be sent to them.  However, no more than 3 messages will be sent in order to avoid flooding the user.  If there are more news messages, only the most recent will be sent. &lt;br /&gt;
&lt;br /&gt;
;OPERNEWS :Edits or displays the list of oper news messages.  When a user opers up (with the /OPER command), these messages will be sent to them.  However, no more than 3 messages will be sent in order to avoid flooding the user.  If there are more news messages, only the most recent will be sent.&lt;br /&gt;
&lt;br /&gt;
;RANDOMNEWS :Edits or displays the list of random news messages.  When a user connects to the network, one (and only one) of the random news will be randomly chosen and sent to them.&lt;br /&gt;
&lt;br /&gt;
*'''NOTE''': Access to these commands require the permission operserv/news to be present in your ''opertype''.&lt;br /&gt;
== &amp;lt;div class=&amp;quot;moduleheader&amp;quot;&amp;gt;Commands&amp;lt;/div&amp;gt; == &lt;br /&gt;
;logonnews ADD text&lt;br /&gt;
;logonnews DEL {num | ALL}&lt;br /&gt;
;logonnews LIST&lt;br /&gt;
&lt;br /&gt;
;opernews ADD text&lt;br /&gt;
;opernews DEL {num | ALL}&lt;br /&gt;
;opernews LIST&lt;br /&gt;
&lt;br /&gt;
;randomnews ADD text&lt;br /&gt;
;randomnews DEL {num | ALL}&lt;br /&gt;
;randomnews LIST&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;div class=&amp;quot;moduleheader&amp;quot;&amp;gt;Examples&amp;lt;/div&amp;gt; ==&lt;br /&gt;
/msg OperServ LOGONNEWS ADD We have upgraded services.  Your previous registrations have been preserved.  Please note that chanserv has changed a lot, you should check it out.&lt;br /&gt;
&lt;br /&gt;
/msg OperServ OPERNEWS DEL 3&lt;br /&gt;
&lt;br /&gt;
/msg OperServ RANDOMNEWS LIST&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;div class=&amp;quot;moduleheader&amp;quot;&amp;gt;Default Configuration&amp;lt;/div&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;code&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
 * os_news&lt;br /&gt;
 *&lt;br /&gt;
 * Provides the commands operserv/logonnews, operserv/opernews, and operserv/randomnews.&lt;br /&gt;
 *&lt;br /&gt;
 * Used to configure news notices shown to users when they connect, and opers when they oper.&lt;br /&gt;
 */&lt;br /&gt;
module&lt;br /&gt;
{&lt;br /&gt;
        name = &amp;quot;os_news&amp;quot;&lt;br /&gt;
&lt;br /&gt;
        /*&lt;br /&gt;
         * The service bot names to use to send news to users on connection&lt;br /&gt;
         * and to opers when they oper.&lt;br /&gt;
         */&lt;br /&gt;
        announcer = &amp;quot;Global&amp;quot;&lt;br /&gt;
        oper_announcer = &amp;quot;OperServ&amp;quot;&lt;br /&gt;
&lt;br /&gt;
        /*&lt;br /&gt;
         * The number of LOGON/OPER news items to display when a user logs on.&lt;br /&gt;
         *&lt;br /&gt;
         * This directive is optional, if not set it will default to 3.&lt;br /&gt;
         */&lt;br /&gt;
        #newscount = 3&lt;br /&gt;
}&lt;br /&gt;
command { service = &amp;quot;OperServ&amp;quot;; name = &amp;quot;LOGONNEWS&amp;quot;; command = &amp;quot;operserv/logonnews&amp;quot;; permission = &amp;quot;operserv/news&amp;quot;; }&lt;br /&gt;
command { service = &amp;quot;OperServ&amp;quot;; name = &amp;quot;OPERNEWS&amp;quot;; command = &amp;quot;operserv/opernews&amp;quot;; permission = &amp;quot;operserv/news&amp;quot;; }&lt;br /&gt;
command { service = &amp;quot;OperServ&amp;quot;; name = &amp;quot;RANDOMNEWS&amp;quot;; command = &amp;quot;operserv/randomnews&amp;quot;; permission = &amp;quot;operserv/news&amp;quot;; }&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Azander</name></author>	</entry>

	</feed>