ii-1.4-ctcp_action.diff (745B)
1 diff -r d93eaacde742 ii.1 2 --- a/ii.1 Fri Jun 25 10:55:05 2010 +0200 3 +++ b/ii.1 Tue Jul 20 10:21:04 2010 -0700 4 @@ -76,6 +76,9 @@ 5 .FN /l " #channel/nickname" 6 leave a channel or query 7 .TP 8 +.FN /m " action" 9 +send action as a CTCP ACTION (think /me) 10 +.TP 11 .FN /n " nick" 12 change the nick name 13 .TP 14 diff -r d93eaacde742 ii.c 15 --- a/ii.c Fri Jun 25 10:55:05 2010 +0200 16 +++ b/ii.c Tue Jul 20 10:21:04 2010 -0700 17 @@ -284,6 +284,14 @@ 18 rm_channel(c); 19 return; 20 break; 21 + case 'm': 22 + if(strlen(buf)>=3) { 23 + char newbuf[PIPE_BUF]; 24 + snprintf(newbuf, PIPE_BUF, "\01ACTION %s\01", &buf[3]); 25 + proc_channels_privmsg(c->name, newbuf); 26 + } 27 + return; 28 + break; 29 default: 30 snprintf(message, PIPE_BUF, "%s\r\n", &buf[1]); 31 break;