sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 2831ccd52a40e304b6faae5552d0e7dc30ba8128
parent 93c5a75a8f5d3d59daa4b27a7ac7336b17a161f0
Author: Evan Gates <evan.gates@gmail.com>
Date:   Tue, 20 Jul 2010 10:27:53 -0700

added ii-1.4-ctcp_action.diff and wiki page for it
Diffstat:
Atools.suckless.org/ii/patches/action.md | 19+++++++++++++++++++
Atools.suckless.org/ii/patches/ii-1.4-ctcp_action.diff | 31+++++++++++++++++++++++++++++++
2 files changed, 50 insertions(+), 0 deletions(-)

diff --git a/tools.suckless.org/ii/patches/action.md b/tools.suckless.org/ii/patches/action.md @@ -0,0 +1,19 @@ +ACTION +====== + +Description +----------- + +Adds support for writing CTCP ACTIONs with the use of '/m some action' +This can be done simply by writing '^AACTION some action^A', but this patch is +for people who are too lazy to do that (me) + +Download +-------- + +* [ii-1.4-ctcp_action.diff](ii-1.4-ctcp_action.diff) + +Author +------ + +* Evan Gates (emg) <[evan.gates@gmail.com](mailto:evan.gates@gmail.com)> diff --git a/tools.suckless.org/ii/patches/ii-1.4-ctcp_action.diff b/tools.suckless.org/ii/patches/ii-1.4-ctcp_action.diff @@ -0,0 +1,31 @@ +diff -r d93eaacde742 ii.1 +--- a/ii.1 Fri Jun 25 10:55:05 2010 +0200 ++++ b/ii.1 Tue Jul 20 10:21:04 2010 -0700 +@@ -76,6 +76,9 @@ + .FN /l " #channel/nickname" + leave a channel or query + .TP ++.FN /m " action" ++send action as a CTCP ACTION (think /me) ++.TP + .FN /n " nick" + change the nick name + .TP +diff -r d93eaacde742 ii.c +--- a/ii.c Fri Jun 25 10:55:05 2010 +0200 ++++ b/ii.c Tue Jul 20 10:21:04 2010 -0700 +@@ -284,6 +284,14 @@ + rm_channel(c); + return; + break; ++ case 'm': ++ if(strlen(buf)>=3) { ++ char newbuf[PIPE_BUF]; ++ snprintf(newbuf, PIPE_BUF, "\01ACTION %s\01", &buf[3]); ++ proc_channels_privmsg(c->name, newbuf); ++ } ++ return; ++ break; + default: + snprintf(message, PIPE_BUF, "%s\r\n", &buf[1]); + break;