[wiki] [sites] wiki updated

From: <hg_AT_suckless.org>
Date: Tue, 20 Jul 2010 17:27:18 +0000 (UTC)

changeset: 589:7a12208e7428
tag: tip
user: Evan Gates <evan.gates_AT_gmail.com>
date: Tue Jul 20 10:27:53 2010 -0700
files: tools.suckless.org/ii/patches/action.md tools.suckless.org/ii/patches/ii-1.4-ctcp_action.diff
description:
added ii-1.4-ctcp_action.diff and wiki page for it


diff -r ba7ec54bf3ea -r 7a12208e7428 tools.suckless.org/ii/patches/action.md
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tools.suckless.org/ii/patches/action.md Tue Jul 20 10:27:53 2010 -0700
_AT_@ -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_AT_gmail.com](mailto:evan.gates_AT_gmail.com)>
diff -r ba7ec54bf3ea -r 7a12208e7428 tools.suckless.org/ii/patches/ii-1.4-ctcp_action.diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tools.suckless.org/ii/patches/ii-1.4-ctcp_action.diff Tue Jul 20 10:27:53 2010 -0700
_AT_@ -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
+_AT_@ -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
+_AT_@ -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;
Received on Tue Jul 20 2010 - 19:27:18 CEST

This archive was generated by hypermail 2.3.0 : Thu Sep 13 2012 - 19:31:23 CEST