Skip to content

GitLab

  • Menu
    • Projects Groups Snippets
      Help
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • S shellnut
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Andreas Nedbal
  • shellnut
  • Merge requests
  • !14

fix syntax error

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Jyrki requested to merge gh-e0453204/14/nilsding/master into master 9 years ago
  • Overview 0
  • Commits 1
  • Changes 1
  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
Compare
  • master (base)

and
  • latest version
    f196fc73
    1 commit, 7 years ago

1 file
+ 2
- 2

    Preferences

    File browser
    Compare changes
shellnut.rb
+ 2
- 2
  • View file @ f196fc73

  • Edit in single-file editor

  • Open in Web IDE


@@ -198,12 +198,12 @@ def start(irc, mumble, twitter_client)
actual_length = tweet_text.gsub(%r(https?://\S+), 'x' * 23).length
if actual_length > 140
hashtag_length = APP_CONFIG['twitter']['hashtag'].strip.empty? ? 0 : APP_CONFIG['twitter']['hashtag'].strip.length + 2
mumble.text_channel(mumble.current_channel, "Tweet text too long, keep it under #{140 - hashtag_length} characters!"
mumble.text_channel(mumble.current_channel, "Tweet text too long, keep it under #{140 - hashtag_length} characters!")
next
end
begin
tweet = twitter_client.update tweet_text
mumble.text_channel(mumble.current_channel, "==> <a href=\"#{tweet.url}\">#{tweet.url}</a>"
mumble.text_channel(mumble.current_channel, "==> <a href=\"#{tweet.url}\">#{tweet.url}</a>")
rescue => e
mumble.text_channel(mumble.current_channel, "Error: Twitter returned an error -- <font face=\"Comic Sans MS\">#{e.message}</font>")
end
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
1
1 participant
Jyrki
Reference: pixeldesu/shellnut!14
Source branch: gh-e0453204/14/nilsding/master

Menu

Projects Groups Snippets
Help