Check for quotes on join

Here is room for additional scripts for Gamers.IRC.

You are highly advised to read the How-To first!
User avatar
Tuxman
Administrator
Posts: 1873
Joined: 24.10.2003 00:13
Status: That guy
Contact:

Check for quotes on join

Unread postby Tuxman » 05.04.2009 20:22

When a user joins a channel you are in, this snippet checks if there is a random quote containing his nickname in your /quotes database and echoes it into the particular channel ...

Code: Select all

on *:join:#:{
  if (%autoquote != 1) {
    set -u10 %autoquote 1
    window -w0h @gircSearchQuotesTempWindow
    filter -fwc bin\txt\quotes.txt @gircSearchQuotesTempWindow $+(*, $nick, *)
    if ($line(@gircSearchQuotesTempWindow,$rand(1,$filtered))) { msg $chan $v1 }
    window -c @gircSearchQuotesTempWindow
  }
}
^\__/
..O.o

This is Einkaufswagen. Copy Einkaufswagen into your signature to help him on his way to world domination.

Who is online

Users browsing this forum: No registered users and 2 guests