Purple Plugin: Dice
Gary Kramlich
grim at reaperworld.com
Sun Dec 2 17:49:48 CST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Smith, Quinten R Mr DoD Ben wrote:
> Sorry to bother you with this, but I haven't been able to find the
> answer anywhere else...
>
> I'm using IRC via Pidgin to play some D&D. I've even managed to
> successfully customize your die script to say something more interesting
> (ex: Honest Ed's Weighted 20-sided die! It always rolls a **). The one
> thing I haven't been able to do with it is turn the output into an
> emote. Unfortunately, it's not a simple matter of sticking "/me" at the
> beginning of the output string. Doing so actually transmits the text
> "/me rolls a 20-sided die" to everyone in the channel.
>
> After some research, I found that most IRC clients interpret /me before
> transmitting anything, and convert it into a CTCP action instead of a
> normal message. I also found what I believe is the right function in the
> Pidgin and Purple source code: irc_cmd_ctcp_action. But no matter how I
> stick it in the die script code, it never comes out right. I'm sure the
> fault is mine.
>
> I'd appreciate any help or advice you could offer. Being the only person
> who's dice appear as regular, spoken text is a bit distracting to
> everyone in the game. Thanks in advance for even reading the email.
>
This has been completed for the next release. It should probably be
made configurable at some point, but right now it'll always call /me
with the results of the roll.
- --
Gary Kramlich <grim at reaperworld.com>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHU0Scdf4lmqisgDIRAkxhAJkBzp4IylM2JyZgyCE0Q9vzeGW8ngCfSCsD
FqfZd5NhGlwEJ+QVJp1rMrs=
=4XUR
-----END PGP SIGNATURE-----
More information about the Plugins-devel
mailing list