This patch allows people to use possessive emotes via the intercom and
ichan. It was submitted by blimey.
To use:
1. Remove all the text above and including the line ==cut here==
2. Save it into your pgplus/src directory
3. Type: patch -p0 < filename.txt
(where filename.txt is the name of the saved file in step 1)
4. Compile and reboot.
==cut here==
--- channel2.c.orig Tue Sep 21 15:21:20 1999
+++ channel2.c Fri Nov 9 00:16:28 2001
@@ -93,6 +93,21 @@
}
}
+/* intercom channel "pemote" command. Text is pre-processed and then
+ sent to 'ip' */
+
+void ip(player * p, char *str)
+{
+ char * oldstack = stack;
+ if (got_msg(p, str, "ip") && is_on_channel(p, NO_INTERCOM_CHANNEL))
+ {
+ sprintf(oldstack, "'s %s", str);
+ stack = endstring(oldstack);
+ ie(p, oldstack);
+ stack = oldstack;
+ }
+}
+
/* intercom channel "sing" command. Text is pre-processed and then
sent to 'ie' */
--- intercom.c.orig Sun Sep 26 15:00:34 1999
+++ intercom.c Fri Nov 9 00:29:02 2001
@@ -1106,8 +1106,8 @@
intercom_status |= INTERCOM_HIGHLIGHT | INTERCOM_PERSONAL_MSG;
- tell_personal_inc_ref (this_job, "%s@%s %s", from_name, remote_talker->abbr,
- msg);
+ tell_personal_inc_ref (this_job, "%s@%s%s%s", from_name, remote_talker->abbr,
+ (*msg == '\'' || *msg == '"' || *msg == '`') ? "" : " ", msg);
intercom_status &= ~(INTERCOM_HIGHLIGHT | INTERCOM_PERSONAL_MSG);