Seeing a post on here about this module yesterday I thought it might be interesting to see what all it could do since I used to spend all my time over on MIRC.

I have 2 questions.

1) How do you issue commands from the bot such as voicing a user by +v? $conn->privmsg($conn->{channel}, "/mode #HiddenRoom +v $nick"); printed literally the entire line. So I'm assuming there's a specific way to issue commands and it's not by privmsg but I couldn't find it on the docs. Can someone fill me in?

2) From the command line after you issue all the sub routines on what to do when someone joins, leaves or sends a message, it "halts" after you issue $irc->start();. I tried to ask for more input after this but the script doesn't go further.

I want to be able to set it up so I can issue commands to the script WHILE it's live so does anyone know of a way to do this? It keeps pausing after you tell it to start().


In reply to Small net::irc questions by coldfingertips

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.