]> git.mxchange.org Git - friendica-addons.git/blobdiff - irc/irc.php
FR translation of various addons updated
[friendica-addons.git] / irc / irc.php
index 072ec4c5bd871089f02bf2d9dd26f4f11b028953..206b1e7f89027c1eec5f39e8306147cb1b656289 100644 (file)
@@ -64,11 +64,12 @@ function irc_app_menu(App $a, array &$b)
        $b['app_menu'][] = '<div class="app-title"><a href="irc">' . DI::l10n()->t('IRC Chatroom') . '</a></div>';
 }
 
-
-function irc_module() {
-       return;
-}
-
+/**
+ * This is a statement rather than an actual function definition. The simple
+ * existence of this method is checked to figure out if the addon offers a
+ * module.
+ */
+function irc_module() {}
 
 function irc_content(App $a)
 {
@@ -134,7 +135,7 @@ function irc_addon_admin_post (App $a)
                DI::config()->set('irc', 'sitechats', trim($_POST['sitechats']));
        }
 }
-function irc_addon_admin (App $a, &$o) {
+function irc_addon_admin (App $a, string &$o) {
        $sitechats = DI::config()->get('irc', 'sitechats'); /* popular channels */
        $autochans = DI::config()->get('irc', 'autochans');  /* auto connect chans */
        $t = Renderer::getMarkupTemplate('admin.tpl', 'addon/irc/' );