3 * IRC-style messagelist
5 * @author Anthony Parsons (xmpp:ant@specialops.ath.cx)
6 * @license file://../COPYING
9 require_once 'lib/iface.Messagestyle.php';
11 class Messagestyle_IRC
implements Messagestyle
16 public function display($msg)
20 // opening tags, msgid link,
21 echo '<div id="m',$msg['messageid'],'" class="message u',$msg['userid'],'">',"\n",
23 '<a href="',HERE
,'#m',$msg['messageid'],'">#',$msg['messageid'],'</a>';
26 echo ' <',$user->namelink($msg['userid'], $msg['alias']),'>';
30 if ( $user->has_priv('moderate') && $user->userid
!= $msg['userid'] ) {
31 echo '<form action="detail?',$msg['messageid'],'" method="post" class="msgmod">'.
32 '<button type="submit" name="action" value="add">+</button>'.
33 '<button type="submit" name="action" value="sub">-</button>'.
37 echo '(Score: ',$msg['score'],')';
38 if ( $user->userid
!= $msg['userid'] ) {
39 echo "<br/>\n",'(<a href="post?message=',$msg['messageid'],'">Reply</a>)';
44 '<div class="content">',$msg['mtext'],"</div>\n",