3 * Name: IRC Chat Plugin
4 * Description: add an Internet Relay Chat chatroom
6 * Author: tony baldwin <http://tonybaldwin.me>
10 function irc_install() {
11 register_hook('app_menu', 'addon/irc/irc.php', 'irc_app_menu');
14 function irc_uninstall() {
15 unregister_hook('app_menu', 'addon/irc/irc.php', 'irc_app_menu');
19 function irc_app_menu($a,&$b) {
20 $b['app_menu'][] = '<div class="app-title"><a href="irc">' . t('irc Chatroom') . '</a></div>';
24 function irc_module() {
29 function irc_content(&$a) {
31 $baseurl = $a->get_baseurl() . '/addon/irc';
35 // add the chatroom frame and some html
38 <iframe src="http://webchat.freenode.net?channels=friendica" width="600" height="600"></iframe>