From bf9cf87ffbb3157d0c3764570d4bdc441425f45c Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Tue, 13 Oct 2009 02:50:09 +0000 Subject: [PATCH] (change version) adding in a spacer in :// to turn off auto show page title in irc clients. For terminal, will not add space. This fixes an irc client bot showing title of web pages of any url, like amybot --- inxi | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/inxi b/inxi index d13ad85..1b4853a 100755 --- a/inxi +++ b/inxi @@ -1,7 +1,7 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 1.2.1 +#### version: 1.2.2 #### Date: October 12 2009 ######################################################################## #### SPECIAL THANKS @@ -4302,8 +4302,14 @@ print_repo_data() (( repo_count++ )) file_name=$( cut -d ':' -f 1 <<< $repo_line ) file_content=$( cut -d ':' -f 2-6 <<< $repo_line ) - # this will dump unwanted white space line starters - file_content=$( echo $file_content ) + # this will dump unwanted white space line starters. Some irc channels + # use bots that show page title for urls, so need to break the url by adding + # a white space. + if [[ $B_RUNNING_IN_SHELL != 'true' ]];then + file_content=$( echo $file_content | sed 's|://|: //|' ) + else + file_content=$( echo $file_content ) + fi # check file name, if different, update the holder for print out if [[ $file_name != $file_name_holder ]];then repo_full="${C1}Contents of $REPO_FILE_ID file:${C2} $file_name"