Recently Written · git

ii-lchat-metapackage

Get suckless irc working for YOU

git clone https://github.com/equwal/ii-lchat-metapackage

Log | Files | Refs


commit e35df86d9a55a39039dedab13922d758beabb2b6
Spenser Truex <truex@equwal.com>
2025-08-30 18:28:25 -0400

Merge branch 'master' of github.com:equwal/ii-lchat-metapackage

 README.md     | 74 +++--------------------------------------------------------
 irc-connect   |  9 ++++----
 lchat-connect |  8 +------
 3 files changed, 8 insertions(+), 83 deletions(-)
diff --cc README.md
index a865874,4790465..b6ccdee
--- a/README.md
+++ b/README.md
@@@ -11,6 -11,6 +11,7 @@@ use
  with nickserv on liberachat. Install it on your machine. If you are
  using a service that isn't in there, or you find it doesn't work,
  please contribute.
++- copy filter/indent to the folder you will have the irc at as .filter
  
  Copy irc-connect and lchat-connect to your path. Modify as needed.
  
diff --cc irc-connect
index 10edc99,10edc99..143c101
--- a/irc-connect
+++ b/irc-connect
@@@ -1,7 -1,7 +1,6 @@@
  #!/bin/sh
  
--TIMEOUT=10
--CHANNELSWAIT=1
++WAIT=5
  
  # IRC client connector script
  # Usage: irc-connect <server> <nick> <pass> <dir> [channel1] [channel2] ...
@@@ -14,14 -14,14 +13,14 @@@ shift 
  
  ii -s "$SERVER" -n "$NICK" -i "$DIR" -e &
  II_PID=$!
--sleep "$TIMEOUT"
++sleep "$WAIT"
  echo "IDENTIFY $NICK $PASS" >"$DIR"/"$SERVER"/nickerv/in
--sleep $CHANNELSWAIT
++sleep $WAIT
  
  # Join all provided channels
  for channel in "$@"; do
      echo "/j $channel" >"$DIR"/"$SERVER"/in
--    sleep "$CHANNELSWAIT"
++    sleep "$WAIT"
  done
  
  wait $II_PID
diff --cc lchat-connect
index 40faec2,e9a6ba2..1f7fa5e
--- a/lchat-connect
+++ b/lchat-connect
@@@ -6,11 -7,4 +6,5 @@@ DIR="$1
  SERVER="$2"
  CHANNEL="$3"
  
- # KLUDGE: why does lchat work like this!
- #
- echo "#!/bin/sh\nsed '/ -!- /d'" >.filter
- chmod +x .filter
- 
- trap 'rm -f .filter' EXIT INT TERM
- 
 -lchat -a "$DIR"/"$SERVER"/"$CHANNEL"
++cd "$DIR"
 +lchat -a "$DIR"/"$SERVER"/"$CHANNEL" -n 50