mirror of
https://github.com/thewesker/twitter_ebooks.git
synced 2025-12-20 04:11:08 -05:00
Redundant line removal
I can't spell.
This commit is contained in:
@@ -304,13 +304,10 @@ module Ebooks
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Updates @user and calls on_user_update. Make sure it's the right person before you call it.
|
# Updates @user and calls on_user_update.
|
||||||
def update_myself(new_me = twitter.user)
|
def update_myself(new_me = twitter.user)
|
||||||
new_me = twitter.user unless new_me.is_a? Twitter::User
|
|
||||||
|
|
||||||
@user = new_me
|
@user = new_me
|
||||||
@username = user.name
|
@username = user.name
|
||||||
|
|
||||||
fire(:user_update)
|
fire(:user_update)
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -337,7 +334,7 @@ module Ebooks
|
|||||||
old_name = username
|
old_name = username
|
||||||
# Load user object and actual username
|
# Load user object and actual username
|
||||||
update_myself
|
update_myself
|
||||||
# Warn about mismatches unless it was clearly intensional
|
# Warn about mismatches unless it was clearly intentional
|
||||||
log "warning: bot expected to be @#{old_name} but connected to @#{username}" unless username == old_name || old_name.empty?
|
log "warning: bot expected to be @#{old_name} but connected to @#{username}" unless username == old_name || old_name.empty?
|
||||||
|
|
||||||
fire(:startup)
|
fire(:startup)
|
||||||
|
|||||||
Reference in New Issue
Block a user