1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-10 01:03:12 +02:00

- WebTV fixes

This commit is contained in:
Bram Matthys
2003-02-28 14:40:11 +00:00
parent a28a349eb2
commit d435c5becf
3 changed files with 22 additions and 8 deletions
+16 -5
View File
@@ -136,6 +136,7 @@ int m_message_Unload(int module_unload)
** rev argv 6/91
**
*/
static int recursive_webtv = 0;
DLLFUNC int m_message(aClient *cptr, aClient *sptr, int parc, char *parv[], int notice)
{
aClient *acptr;
@@ -198,17 +199,27 @@ DLLFUNC int m_message(aClient *cptr, aClient *sptr, int parc, char *parv[], int
*/
if (!strcasecmp(nick, "ircd") && MyClient(sptr))
{
parse(sptr, parv[2], (parv[2] + strlen(parv[2])));
if (!recursive_webtv)
{
recursive_webtv = 1;
parse(sptr, parv[2], (parv[2] + strlen(parv[2])));
recursive_webtv = 0;
}
continue;
}
if (!strcasecmp(nick, "irc") && MyClient(sptr))
{
if (webtv_parse(sptr, parv[2]) == -2)
if (!recursive_webtv)
{
parse(sptr, parv[2],
(parv[2] + strlen(parv[2])));
recursive_webtv = 1;
if (webtv_parse(sptr, parv[2]) == -2)
{
parse(sptr, parv[2],
(parv[2] + strlen(parv[2])));
}
recursive_webtv = 0;
continue;
}
continue;
}
if (*nick != '#' && (acptr = find_person(nick, NULL)))
{