[standards-jig] Banning with wildcards in MUC

Joe Hildebrand JHildebrand at jabber.com
Thu Jan 15 20:04:31 UTC 2004


Perhaps something other than jid, then:

<iq
    type='set'
    from='kinghenryv at shakespeare.lit/throne'
    to='southampton at henryv.shakespeare.lit'
    id='ban1'>
  <query xmlns='http://jabber.org/protocol/muc#admin'>
    <item pattern='*@shakespeare.lit'
          affiliation='outcast'>
      <reason>Treason</reason>
    </item>
  </query>
</iq>

Or, if we want to consider the JEP schema cast in stone at this point:

<iq
    type='set'
    from='kinghenryv at shakespeare.lit/throne'
    to='southampton at henryv.shakespeare.lit'
    id='ban1'>
  <query xmlns='http://jabber.org/protocol/muc#admin'>
    <match xmlns='http://jabber.org/protocol/muc#pattern' 
          pattern='*@shakespeare.lit'
          affiliation='outcast'>
      <reason>Treason</reason>
    </match>
  </query>
</iq>

-- 
Joe Hildebrand

 

> -----Original Message-----
> From: Michael Poole [mailto:mdpoole at troilus.org] 
> Sent: Thursday, January 15, 2004 11:17 AM
> To: standards-jig at jabber.org
> Subject: Re: [standards-jig] Banning with wildcards in MUC
> 
> Joe Hildebrand writes:
> 
> > *@example.com is a valid JID.  Someone actually registered 
> > *@jabber.org somewhere along the way... :)
> >
> > What would banning "example.com" mean?
> 
> example.com is a valid JID too -- it just doesn't belong to a 
> user.  I assume banning it would prevent the server from 
> joining the MUC room.
> 
> Some IRC servers treat * and ? and \ as metacharacters in 
> bans unless they are preceeded by a \.  There are obvious 
> problems if someone uses a JID (or set of JIDs) with many 
> metacharacters in the name, but without reserved characters, 
> you will have such a problem.
> 
> You can also ban by regular expression, although certain 
> regexps have worse back-tracking behavior than any glob does.
> 
> Michael Poole
> _______________________________________________
> Standards-JIG mailing list
> Standards-JIG at jabber.org
> http://mailman.jabber.org/listinfo/standards-jig
> 



More information about the Standards mailing list