diff options
| author | Alexander Barton <alex@barton.de> | 2002-02-28 00:48:26 +0000 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2002-02-28 00:48:26 +0000 |
| commit | 40f07f2f5cb9282d5216c2ac531a9ff8169b468b (patch) | |
| tree | 642f774b496470212612e232d5c213056dd6abff /src | |
| parent | ef7f7a90f4242d2b27adf3539bc7bc0c00dde0d1 (diff) | |
| download | ngircd-40f07f2f5cb9282d5216c2ac531a9ff8169b468b.tar.gz ngircd-40f07f2f5cb9282d5216c2ac531a9ff8169b468b.zip | |
- Forwarding von TOPIC an andere Server gefixed. Hoffentlich ;-)
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/irc.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/ngircd/irc.c b/src/ngircd/irc.c index 306ab1c5..3b9e903d 100644 --- a/src/ngircd/irc.c +++ b/src/ngircd/irc.c @@ -9,11 +9,14 @@ * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. * - * $Id: irc.c,v 1.82 2002/02/27 23:26:36 alex Exp $ + * $Id: irc.c,v 1.83 2002/02/28 00:48:26 alex Exp $ * * irc.c: IRC-Befehle * * $Log: irc.c,v $ + * Revision 1.83 2002/02/28 00:48:26 alex + * - Forwarding von TOPIC an andere Server gefixed. Hoffentlich ;-) + * * Revision 1.82 2002/02/27 23:26:36 alex * - einige Funktionen in irc-xxx-Module ausgegliedert. * @@ -811,9 +814,12 @@ GLOBAL BOOLEAN IRC_TOPIC( CLIENT *Client, REQUEST *Req ) Channel_SetTopic( chan, Req->argv[1] ); Log( LOG_DEBUG, "User \"%s\" set topic on \"%s\": %s", Client_Mask( from ), Channel_Name( chan ), Req->argv[1][0] ? Req->argv[1] : "<none>" ); - /* im Channel bekannt machen */ - IRC_WriteStrChannelPrefix( Client, chan, from, TRUE, "TOPIC %s :%s", Req->argv[0], Req->argv[1] ); - return IRC_WriteStrClientPrefix( from, from, "TOPIC %s :%s", Req->argv[0], Req->argv[1] ); + /* im Channel bekannt machen und an Server weiterleiten */ + IRC_WriteStrServersPrefix( Client, from, "TOPIC %s :%s", Req->argv[0], Req->argv[1] ); + IRC_WriteStrChannelPrefix( Client, chan, from, FALSE, "TOPIC %s :%s", Req->argv[0], Req->argv[1] ); + + if( Client_Type( Client ) == CLIENT_USER ) return IRC_WriteStrClientPrefix( Client, Client, "TOPIC %s :%s", Req->argv[0], Req->argv[1] ); + else return CONNECTED; } /* IRC_TOPIC */ |