Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Commit time: 2005-08-17 02:35:46 UTC
Modified files:
ChangeLog ircd/m_topic.c
Log message:
Convert a &me to &his in do_settopic().
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.674 ircu2.10/ChangeLog:1.675
--- ircu2.10/ChangeLog:1.674 Tue Aug 16 19:14:44 2005
+++ ircu2.10/ChangeLog Tue Aug 16 19:35:36 2005
@@ -15,6 +15,9 @@
* ircd/m_kick.c (ms_kick): Likewise.
+ * ircd/m_topic.c (do_settopic): Another &me -> &his change for
+ HIS, and use that apparent source for the channel localcast.
+
2005-08-16 Jukka Ollila <[EMAIL PROTECTED]>
* ircd/s_user.c (hide_hostmask): Use HIS_SERVERNAME instead of the
Index: ircu2.10/ircd/m_topic.c
diff -u ircu2.10/ircd/m_topic.c:1.20 ircu2.10/ircd/m_topic.c:1.21
--- ircu2.10/ircd/m_topic.c:1.20 Sun Mar 20 08:06:26 2005
+++ ircu2.10/ircd/m_topic.c Tue Aug 16 19:35:36 2005
@@ -20,7 +20,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
- * $Id: m_topic.c,v 1.20 2005/03/20 16:06:26 entrope Exp $
+ * $Id: m_topic.c,v 1.21 2005/08/17 02:35:36 entrope Exp $
*/
/*
@@ -104,7 +104,7 @@
int newtopic;
if (feature_bool(FEAT_HIS_BANWHO) && IsServer(sptr))
- from = &me;
+ from = &his;
else
from = sptr;
if (IsChannelService(sptr))
@@ -136,7 +136,7 @@
sendcmdto_serv_butone(sptr, CMD_TOPIC, cptr, "%H %Tu %Tu :%s", chptr,
chptr->creationtime, chptr->topic_time,
chptr->topic);
if (newtopic)
- sendcmdto_channel_butserv_butone(sptr, CMD_TOPIC, chptr, NULL, 0,
+ sendcmdto_channel_butserv_butone(from, CMD_TOPIC, chptr, NULL, 0,
"%H :%s", chptr, chptr->topic);
/* if this is the same topic as before we send it to the person that
* set it (so they knew it went through ok), but don't bother sending
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches