commit 40ab3bf551a6c828b5553f18ed7bef60a2383f65
parent ea8b6791b4406cf0e89c0ed15c54b091b194056a
Author: sin <sin@2f30.org>
Date: Fri, 9 May 2014 10:41:42 +0100
Fix looping issue
Diffstat:
4 files changed, 8 insertions(+), 73 deletions(-)
diff --git a/README b/README
@@ -1,11 +1,12 @@
-Edit config according to your needs. Modify the highlight
-script as well and set your nickname there so it gets highlighted
-properly. Then start ./hysteria.
+WTF?
+====
+Edit config according to your needs. Edit highlight.c with
+your nick information and compile it with cc -o highlight highlight.c
+Then start ./hysteria.
KNOWN ISSUES AND WORKAROUNDS
-----------------------------
-
+============================
Tmux input bar resize
---------------------
diff --git a/connectserver b/connectserver
@@ -17,5 +17,5 @@ fi
host=$(echo $1 | awk -F: '{print $1}')
port=$(echo $1 | awk -F: '{print $2}')
tmux new-window "ii -i irc -s $host -p $port -n $nick -f $fullname"
-tmux rename-window "ii@$host"
+tmux rename-window "$host"
./waitfile "irc/$host/out"
diff --git a/highlight b/highlight
@@ -1,66 +0,0 @@
-#!/usr/bin/perl
-#
-# Taken from: https://github.com/berkoz/hiii
-
-use v5.10;
-use strict;
-use warnings;
-
-my %config = (
- # You can specify multiple nicknames like, 'berk|bozbalci'
-
- 'nick' => 'your_nickname',
- 'color_nicks' => 'light_green',
- 'color_own_nick' => 'light_red',
- 'color_url' => 'light_blue',
- 'color_actions' => 'magenta',
- 'color_server' => 'black'
-);
-
-my %color = (
- 'black' => "[1;30m",
- 'red' => "[1;31m",
- 'green' => "[1;32m",
- 'yellow' => "[1;33m",
- 'blue' => "[1;34m",
- 'magenta' => "[1;35m",
- 'cyan' => "[1;36m",
- 'white' => "[1;37m",
- 'light_black' => "[30m",
- 'light_red' => "[31m",
- 'light_green' => "[32m",
- 'light_yellow' => "[33m",
- 'light_blue' => "[34m",
- 'light_magenta' => "[35m",
- 'light_cyan' => "[36m",
- 'light_white' => "[37m",
- 'reset' => "[1;0m"
-);
-
-my $timestamp = "[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}";
-my $url = "(((https?|ftp)|mailto):(//)?[^ <>\"[:blank:]]*|(www|ftp)[0-9]?\.[-a-z0-9.]+)";
-my $nick = "<(.*?)>";
-my $action = "ACTION (.*)?";
-my $useless = "^-!- (.*)";
-
-while (<>) {
- # Remove the huge timestamp from the line's beginning
- s/^$timestamp //;
-
- # Highlight nicknames, remove <> around them
- s/^$nick/$color{$config{'color_nicks'}}$1$color{'reset'} /;
-
- # Highlight me
- s/($config{'nick'})/$color{$config{'color_own_nick'}}$1$color{'reset'}/;
-
- # Highlight URLs
- s/$url/$color{$config{'color_url'}}$1$color{'reset'}/;
-
- # Highlight /me actions
- s/$action/$color{$config{'color_actions'}}* $1 *$color{'reset'}/;
-
- # Highlight "has joined", "changed mode", etc.
- s/^$useless/$color{$config{'color_server'}}$1$color{'reset'}/;
-
- print;
-}
diff --git a/monitor b/monitor
@@ -12,7 +12,7 @@ while :; do
print $2}')
found=0
for t in $(tmux list-windows -F '#W'); do
- if test "$t" == "$title"; then
+ if test "$t" = "$title"; then
found=1
break
fi