Add IRC command as a catchall

This commit is contained in:
Christine Dodrill 2015-11-07 08:22:25 -08:00
parent 5472c5c969
commit 895f8011a7
1 changed files with 5 additions and 0 deletions

View File

@ -138,6 +138,11 @@ routes:
if episode.episode == enumber: if episode.episode == enumber:
ep = episode ep = episode
if @"format" == "irccmd":
let
irccmd = "/cs episode del $1 $2\n/cs episode add $1 $2 $3 $4" % [$ep.season, $ep.episode, $ep.air_date, ep.name]
echo irccmd
if ep.air_date == 0: if ep.air_date == 0:
stats.episodeLookup.fails.inc stats.episodeLookup.fails.inc
httpReply Http404, "Not found" httpReply Http404, "Not found"