Add IRC command as a catchall
This commit is contained in:
parent
5472c5c969
commit
895f8011a7
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue