<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>106204</bug_id>
          
          <creation_ts>2013-01-06 18:46:58 -0800</creation_ts>
          <short_desc>sheriffbot cannot return multiline responses to commands</short_desc>
          <delta_ts>2013-01-07 11:41:15 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alan Cutter">alancutter</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>alancutter</cc>
    
    <cc>eric</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>801133</commentid>
    <comment_count>0</comment_count>
    <who name="Alan Cutter">alancutter</who>
    <bug_when>2013-01-06 18:46:58 -0800</bug_when>
    <thetext>At the moment the IRCBot class only allows for one reply per command.
It would be nice to have the option for multiline responses to let commands that need to respond with lots of information be able to format it for human readability.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>801134</commentid>
    <comment_count>1</comment_count>
    <who name="Alan Cutter">alancutter</who>
    <bug_when>2013-01-06 19:12:35 -0800</bug_when>
    <thetext>Correction:
sheriffbot can post multiple responses via tool.irc().post(message).

The difference between:

return [
    &quot;%s: Message line 1&quot; + nick,
    &quot;%s: Message line 2&quot; + nick,
]

and: 

tool.irc().post(&quot;%s: Message line 1&quot; + nick)
tool.irc().post(&quot;%s: Message line 2&quot; + nick)
return

is probably not worth the additional interface complexity for IRCBot to support the former.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>801486</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2013-01-07 11:41:15 -0800</bug_when>
    <thetext>Yeah, being able to return a string is just an shortcut for simple commands.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>