View Issue Details

IDProjectCategoryView StatusLast Update
0002915unrealircdpublic2021-11-01 16:56
ReporterhmtX Assigned Tosyzop  
PrioritynormalSeveritytrivialReproducibilityalways
Status closedResolutionno change required 
OSallOS Versionall 
Product Version3.2.4 
Summary0002915: global /notice #<host> does not work
DescriptionI've seen in the code that just like /notice $<servername> will send a notice to all users on a matching server name, /notice #<host> is supposed to send a notice to all users that match the specified hostmask. However you'll always get a user/channel not found error.

Snipped from m_message.c:

...
p2 = (char *)strchr(nick, '#');
...
else if (p2)
    {
    sendto_one(sptr, err_str(ERR_NOSUCHNICK), me.name,
        parv[0], p2);
    continue;
}
/*
   ** the following two cases allow masks in NOTICEs
   ** (for OPERs only)
   **
   ** Armin, 8Jun90 ([email protected])
*/
if ((*nick == '$' || *nick == '#') && (IsAnOper(sptr)
    || IsULine(sptr)))
{
...
    sendto_match_butone(IsServer(cptr) ? cptr : NULL,
        sptr, nick + 1,
        (*nick == '#') ? MATCH_HOST :
        MATCH_SERVER,
        ":%s %s %s :%s", parv[0], cmd, nick, parv[2]);

I don't see how the second case with *nick == '#' can ever happen.
TagsNo tags attached.
3rd party modules

Relationships

has duplicate 0003899 closed PRIVMSG to #<hostmask/wildcardmask> doesn't work. 

Activities

hmtX

2006-05-11 18:39

reporter   ~0011695

should have placed that in ircd instead of module...

driew

2010-04-15 08:57

reporter   ~0016065

Just found this one...
I reported this as: http://bugs.unrealircd.org/view.php?id=3899

syzop

2021-11-01 16:56

administrator   ~0022153

Ripped out in 4.x or 5.x

Issue History

Date Modified Username Field Change
2006-05-11 18:08 hmtX New Issue
2006-05-11 18:39 hmtX Note Added: 0011695
2007-04-27 03:38 stskeeps Status new => acknowledged
2007-04-27 03:38 stskeeps Category module => ircd
2010-04-15 08:57 driew Note Added: 0016065
2010-05-06 03:08 ohnobinki Relationship added has duplicate 0003899
2021-11-01 16:56 syzop Assigned To => syzop
2021-11-01 16:56 syzop Status acknowledged => closed
2021-11-01 16:56 syzop Resolution open => no change required
2021-11-01 16:56 syzop Note Added: 0022153