Skip to content

Commit

Permalink
twitter.tcl: Say something if no followers/following results
Browse files Browse the repository at this point in the history
  • Loading branch information
horgh committed Aug 18, 2016
1 parent 3e9ee99 commit 39e7e18
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions twitter.tcl
Expand Up @@ -357,6 +357,10 @@ proc ::twitter::followers {nick uhost hand chan argv} {
foreach line [::twitter::split_line 300 $followers] {
twitter::output $chan "Followers: $followers"
}

if {[llength $users] == 0} {
::twitter::output $chan "$screen_name has no followers."
}
}

# Returns the latest users following acct is following (up to 100)
Expand Down Expand Up @@ -391,6 +395,10 @@ proc ::twitter::following {nick uhost hand chan argv} {
foreach line [::twitter::split_line 300 $following] {
::twitter::output $chan "Following: $line"
}

if {[llength $users] == 0} {
::twitter::output $chan "$screen_name is not following anyone."
}
}

# Get global trends
Expand Down

0 comments on commit 39e7e18

Please sign in to comment.