tsfix
[lhc/web/wiklou.git] / irc / rcdumper.php
index 3deb9e0..684f53a 100644 (file)
@@ -4,7 +4,7 @@
 Example command-line:
        php rcdumper.php | irc -d -c \#channel-to-join nick-of-bot some.irc.server
 where irc is the name of the ircII executable.
-The name of the the IRC should match $ircServer below.
+The name of the IRC server should match $ircServer below.
 */
 
 $ircServer = "irc.freenode.net";
@@ -74,11 +74,8 @@ while (1) {
                $title = str_replace("_", " ", $title);
                 # see http://www.irssi.org/?page=docs&doc=formats for some colour codes. prefix is \003, 
                # no colour (\003) switches back to the term default
-               $fullString = "\003$title\0037 $flag\00310 $url \0037*\003 $user \0037*\003 $comment\n";
+               $fullString = "\00303$title\0037 $flag\00310 $url \0037*\003 $user \0037*\003 $comment\n";
 
-               if ( $fullString{0} == "/" ) {
-                       $fullString = " $fullString";
-               }
                print( $fullString );
                $oldTimestamp = $row->rc_timestamp;
                sleep(2);