<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <atom:link href="https://smaugmuds.afkmods.com/index.php?a=rssfeed&amp;t=1159" rel="self" type="application/rss+xml" />
  <title>SmaugMuds - Topic: A New function for the channel history</title>
  <link>https://smaugmuds.afkmods.com/index.php?a=rssfeed&amp;t=1159</link>
  <description>The largest Smaug community resource site. - Might be of use :)</description>
  <language>en</language>
  <generator>SmaugMuds</generator>
  <ttl>60</ttl>
  <item>
   <title>A New function for the channel history</title>
   <link>https://smaugmuds.afkmods.com/topic/a-new-function-for-the-channel-history-1159/&amp;p=4740#p4740</link>
   <description>We added this in the code for send_tochannel because I was lazy and didn&#039;t feel like adding a new command. If you want to use this, it&#039;s up to you to backport the C++ [code]   if( !argument || argument[0] == &#039;\0&#039; || !str_cmp( argument, &amp;quot;hpurge&amp;quot; ) ) { if( !channel-&amp;gt;flags.test( CHAN_KEEPHISTORY ) ) { ch-&amp;gt;printf( &amp;quot;%s what?\r\n&amp;quot;, capitalize( channel-&amp;gt;name ) ); return; } if( !str_cmp( argument, &amp;quot;hpurge&amp;quot; ) ) { for( int x = 0; x </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/a-new-function-for-the-channel-history-1159/&amp;p=4740#p4740</guid>
   <pubDate>Thu, 23 Nov 2006 21:41:17 CST</pubDate>
   <category>AFKMud Support &amp; Development</category>
   <author>nobody@example.com (Samson)</author>
  </item>
  <item>
   <title>A New function for the channel history</title>
   <link>https://smaugmuds.afkmods.com/topic/a-new-function-for-the-channel-history-1159/&amp;p=4739#p4739</link>
   <description>[code] for( loopa = 0; loopa &amp;lt; MAX_CHANHISTORY; loopa++ ) { if ( channel-&amp;gt;history[loopa][0] ) DISPOSE( channel-&amp;gt;history[loopa][0] ); if ( channel-&amp;gt;history[loopa][1] ) DISPOSE( channel-&amp;gt;history[loopa][1] ); } [/code] IIRC DISPOSE checks for NULL so you can remove the ifchecks.</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/a-new-function-for-the-channel-history-1159/&amp;p=4739#p4739</guid>
   <pubDate>Thu, 23 Nov 2006 16:30:06 CST</pubDate>
   <category>AFKMud Support &amp; Development</category>
   <author>nobody@example.com (kiasyn)</author>
  </item>
  <item>
   <title>A New function for the channel history</title>
   <link>https://smaugmuds.afkmods.com/topic/a-new-function-for-the-channel-history-1159/&amp;p=4735#p4735</link>
   <description>[quote=ToadVile]I was thinking bout like a command, so that you can clear the history of channels. Any channel you want. Like clear &amp;quot;tells&amp;quot; would remove all thats been said, all. giving you a nice, empty history buffer again..  Just a idea[/quote] I realize that this is an old post but it got me thinking, so I whipped up a short function to do just what was suggested. Not sure if it&#039;s allowed so Samson feel free to remove the code if you don&#039;t want it posted.  It was just easy and I want</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/a-new-function-for-the-channel-history-1159/&amp;p=4735#p4735</guid>
   <pubDate>Thu, 23 Nov 2006 06:52:13 CST</pubDate>
   <category>AFKMud Support &amp; Development</category>
   <author>nobody@example.com (Moridian)</author>
  </item>
  <item>
   <title>A New function for the channel history</title>
   <link>https://smaugmuds.afkmods.com/topic/a-new-function-for-the-channel-history-1159/&amp;p=4281#p4281</link>
   <description>I was thinking bout like a command, so that you can clear the history of channels. Any channel you want. Like clear &amp;quot;tells&amp;quot; would remove all thats been said, all. giving you a nice, empty history buffer again..  Just a idea</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/a-new-function-for-the-channel-history-1159/&amp;p=4281#p4281</guid>
   <pubDate>Sat, 1 Jul 2006 00:06:50 CDT</pubDate>
   <category>AFKMud Support &amp; Development</category>
   <author>nobody@example.com (ToadVile)</author>
  </item>
 </channel>
</rss>
