mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-25 12:43:40 +00:00
7949cf3f53
changed my profile url to the current, free-haven profile, in all plugins to which I have contributed added insanejournal.com plugin, ijpost other minor cleanup of details, where a plugin was copied and modified but incorrect details were left.
46 lines
914 B
PHP
46 lines
914 B
PHP
<?php
|
|
/**
|
|
* Name: IRC Chat Plugin
|
|
* Description: add an Internet Relay Chat chatroom
|
|
* Version: 1.0
|
|
* Author: tony baldwin <https://free-haven.org/profile/tony>
|
|
*/
|
|
|
|
|
|
function irc_install() {
|
|
register_hook('app_menu', 'addon/irc/irc.php', 'irc_app_menu');
|
|
}
|
|
|
|
function irc_uninstall() {
|
|
unregister_hook('app_menu', 'addon/irc/irc.php', 'irc_app_menu');
|
|
|
|
}
|
|
|
|
function irc_app_menu($a,&$b) {
|
|
$b['app_menu'][] = '<div class="app-title"><a href="irc">' . t('irc Chatroom') . '</a></div>';
|
|
}
|
|
|
|
|
|
function irc_module() {
|
|
return;
|
|
}
|
|
|
|
|
|
function irc_content(&$a) {
|
|
|
|
$baseurl = $a->get_baseurl() . '/addon/irc';
|
|
$o = '';
|
|
|
|
|
|
// 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">a beginner's guid to using IRC.</a></p>
|
|
<iframe src="http://webchat.freenode.net?channels=friendica" width="600" height="600"></iframe>
|
|
EOT;
|
|
|
|
return $o;
|
|
|
|
}
|
|
|
|
|