Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: using Net::IRC for actions

by eibwen (Friar)
on May 03, 2005 at 00:28 UTC ( [id://453452]=note: print w/replies, xml ) Need Help??


in reply to using Net::IRC for actions

prefix and suffix the action text with \001.

UPDATE: As far as I can tell/recall ACTION is not in the IRC RFC (or the addendum), but rather the CTCP specification.

Replies are listed 'Best First'.
Re^2: using Net::IRC for actions
by Anonymous Monk on May 03, 2005 at 00:47 UTC
    Sorry, do you mean elsif ($text =~ m/\001slaps\001/i)? I tried that as the regex and it didn't change anything.

      No, that's wrong. According to the CTCP Specification, correct is:

      $text =~ m/^\001ACTION slaps Wizard\001$/

      --Ingo

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://453452]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-18 07:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found