summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tool/irssi_cf_alturl.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/tool/irssi_cf_alturl.pl b/tool/irssi_cf_alturl.pl
index 5aad51aa..33435da5 100644
--- a/tool/irssi_cf_alturl.pl
+++ b/tool/irssi_cf_alturl.pl
@@ -195,7 +195,11 @@ sub GotUrl {
$response = $browser->get($url);
$answer = $response->content;
if ( index( $answer, 'https://ux.nu/' ) == 0 ) {
- $mytype = '^B^C7[Short]^O ';
+ if ($mytype eq ''){
+ $mytype = '^B^C7[Short]^O ';
+ }else{
+ $mytype = '^B^C2[Short,Archive]^O ';
+ }
$myurl = $answer;
}
}