Jacek Kowalski
2014-01-19 ff648fb80a91d22f26a49d981e90068b2b47adcb
modules/30_rss.php
@@ -170,6 +170,20 @@
         return FALSE;
      }
      
      if($rss->entry) {
         GGapi::putRichText(self::p($rss->title), TRUE);
         foreach($rss->entry as $item) {
            GGapi::putRichText("\n\n".self::p($item->title), TRUE);
            GGapi::putRichText("\n".self::p($item->summary, ($arg=='bash'))."\n".self::p($item->link['href']));
            if(GGapi::getLength() > 1700) {
               return;
            }
         }
      }
      else
      {
      GGapi::putRichText(self::p($rss->channel->title), TRUE);
      if($rss->channel->copyright) {
         GGapi::putRichText("\n".self::p($rss->channel->copyright));
@@ -184,6 +198,7 @@
         }
      }
   }
   }
   
   static function cmd_set($name, $arg) {
      $arg = self::channel(funcs::utfToAscii($arg), TRUE);