]> git.cworth.org Git - sup/commitdiff
logic bugfix
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Mon, 20 Aug 2007 02:14:48 +0000 (02:14 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Mon, 20 Aug 2007 02:14:48 +0000 (02:14 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@535 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/modes/edit-message-mode.rb

index d8f2c5705c7c9ca7a3615f63200d0e75544a4733..2c725c1faf081cb842423a1360c811ae658d7245 100644 (file)
@@ -187,9 +187,9 @@ protected
   end
 
   def send_message
-    return unless edited? || BufferManager.ask_yes_or_no("Message unedited. Really send?")
-    return unless $config[:confirm_no_attachments] && mentions_attachments? && @attachments.size == 0 && BufferManager.ask_yes_or_no("You haven't added any attachments. Really send?")#" stupid ruby-mode
-    return unless $config[:confirm_top_posting] && top_posting? && BufferManager.ask_yes_or_no("You're top posting. That makes you a bad person. Really send?") #" stupid ruby-mode
+    return if edited? && !BufferManager.ask_yes_or_no("Message unedited. Really send?")
+    return if $config[:confirm_no_attachments] && mentions_attachments? && @attachments.size == 0 && !BufferManager.ask_yes_or_no("You haven't added any attachments. Really send?")#" stupid ruby-mode
+    return if $config[:confirm_top_posting] && top_posting? && !BufferManager.ask_yes_or_no("You're top posting. That makes you a bad person. Really send?") #" stupid ruby-mode
 
     date = Time.now
     from_email =