modules/autoop.php
author Dan
Mon, 05 Jan 2009 22:29:36 -0500
changeset 44 73f74d395f95
parent 8 0acb8d9a3194
child 51 508400fc5282
permissions -rw-r--r--
Added theme support. Oh yeah, you can customize graphs using graph_{line,bar}.def.

<?php

eb_hook('event_join', 'autoop_event($chan, $message);');

function autoop_event(&$chan, &$message)
{
  global $privileged_list;
  
  $channelname = $chan->get_channel_name();
  
  // if a known op joins the channel, send mode +o
  if ( in_array($message['nick'], $privileged_list) )
  {
    $chan->parent->put("MODE $channelname +o {$message['nick']}\r\n");
  }
}