]> git.mxchange.org Git - friendica-addons.git/blobdiff - irc/irc.php
Merge pull request #1160 from nupplaphil/task/httprequest_optimiziations
[friendica-addons.git] / irc / irc.php
index 2c969d4be614b76173545ea16ef4d87ba8ddcb38..4cb99c3f67ee4ff8d44595dbaacd34e1fb04bf9f 100644 (file)
@@ -17,13 +17,6 @@ function irc_install() {
        Hook::register('addon_settings_post', 'addon/irc/irc.php', 'irc_addon_settings_post');
 }
 
-function irc_uninstall() {
-       Hook::unregister('app_menu', 'addon/irc/irc.php', 'irc_app_menu');
-       Hook::unregister('addon_settings', 'addon/irc/irc.php', 'irc_addon_settings');
-
-}
-
-
 function irc_addon_settings(&$a,&$s) {
        if(! local_user())
                return;
@@ -62,7 +55,6 @@ function irc_addon_settings_post(&$a, &$b) {
                        DI::pConfig()->set(local_user(), 'irc', 'sitechats', trim($_POST['sitechats']));
                }
                /* upid pop-up thing */
-               info(DI::l10n()->t('IRC settings saved.') . EOL);
        }
 }
 
@@ -117,8 +109,8 @@ function irc_content(&$a) {
 /* add the chatroom frame and some html */
   $o .= <<< EOT
 <h2>IRC chat</h2>
-<p><a href="http://tldp.org/HOWTO/IRC/beginners.html" target="_blank" rel="noopener noreferrer">A beginner's guide to using IRC. [en]</a></p>
-<iframe src="//webchat.freenode.net?channels=$channels" style="width:100%; max-width:900px; height: 600px;"></iframe>
+<p><a href="https://tldp.org/HOWTO/IRC/beginners.html" target="_blank" rel="noopener noreferrer">A beginner's guide to using IRC. [en]</a></p>
+<iframe src="//web.libera.chat?channels=$channels" style="width:100%; max-width:900px; height: 600px;"></iframe>
 EOT;
 
 return $o;
@@ -132,8 +124,6 @@ function irc_addon_admin_post (&$a) {
        if($_POST['irc-submit']) {
                DI::config()->set('irc','autochans',trim($_POST['autochans']));
                DI::config()->set('irc','sitechats',trim($_POST['sitechats']));
-               /* stupid pop-up thing */
-               info(DI::l10n()->t('IRC settings saved.') . EOL);
        }
 }
 function irc_addon_admin (&$a, &$o) {