Changeset 899 for trunk/Modules/Chat


Ignore:
Timestamp:
Feb 17, 2021, 12:30:23 PM (4 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Chat/Chat.php

    r894 r899  
    8585}
    8686
    87 class ModuleChat extends AppModule
     87class ModuleChat extends Module
    8888{
    8989  function __construct(System $System)
     
    9393    $this->Version = '1.0';
    9494    $this->Creator = 'Chronos';
    95     $this->License = 'GNU/GPL';
     95    $this->License = 'GNU/GPLv3';
    9696    $this->Description = 'Show history of IRC chat and previous SunriseChat';
    97     $this->Dependencies = array();
    98   }
    99 
    100   function GetModels(): array
    101   {
    102     return array(ChatHistory::GetClassName());
     97    $this->Models = array(ChatHistory::GetClassName());
    10398  }
    10499
     
    111106class ChatHistory extends Model
    112107{
    113   static function GetDesc(): ModelDesc
     108  static function GetModelDesc(): ModelDesc
    114109  {
    115110    $Desc = new ModelDesc(self::GetClassName());
     
    121116    $Desc->AddInteger('RoomType');
    122117    $Desc->AddString('Host');
    123         return $Desc;
     118    return $Desc;
    124119  }
    125120}
Note: See TracChangeset for help on using the changeset viewer.