Skip to content
Commits on May 11, 2015
  1. Ban uid or sid for gateway users.

    committed May 11, 2015
    Adds a wildcard ? to the username to ban uid* or sid* format usernames
    for gateway users.
Commits on Apr 23, 2015
  1. Tweaks and improvements to admin plugin

    committed Apr 22, 2015
    Added warnings if no duration was given to a quiet or ban, since admins
    may expect a default timeout.
    Added return statements after some failure cases in a few functions.
    Added a few lines to quiet the static analyzer.
Commits on Jan 12, 2015
  1. Added MIT license

    committed Jan 12, 2015
Commits on Jan 10, 2015
  1. Merge pull request #4 from zuzak/realname

    committed Jan 10, 2015
    add realname
Commits on Jan 9, 2015
  1. @zuzak

    add realname

    zuzak committed Jan 9, 2015
    The "realname" field of an IRC client is accessible when somebody runs a
    whois on the client in question, although only rarely is it used for
    people's actual real names. This commit adds a realname configuration
    This option is populated during the configuration initialisation wizard
    with a sensible default for people who don't bother to customise things:
    a string pointing to the bot's operator, which is a nice courtesy to
    users (or IRC operators) who want to contact the person in charge.
    The configuration can be altered manually by editing the "realname"
    parameter of the irc.IRCBotPlugin.json file in the configuration
    directory. One might wish to link to the bot's source code, for example.
Commits on Nov 19, 2014
  1. !bans can now take no arguments

    committed Nov 19, 2014
Commits on Nov 8, 2014
  1. admin comment update and message change

    committed Nov 8, 2014
    _do_modederquest docstring updated to clarify the difference between it
    and _do_moderequest.
    Message sent when doing a !mode with a duration is now sent via direct
  2. Changes to time parsing in admin commands

    committed Nov 8, 2014
    when you do a !ban or a !quiet or a !unban or a !unquiet or a !mode with
    a time/duration, it will now say or PM you the time it parsed so you
    know it got it right. also !quiet with a message that's not a duration
    no longer errors but chooses the default time.
Commits on Oct 14, 2014
  1. fixed bug in involving duplicate timer events

    committed Oct 14, 2014
    If the plugin was reloaded within 30 seconds of starting, the timer that
    calls _set_all_timers wasn't canceled, causing the unloaded plugin to
    set timers and causing duplicate events to be processed.
    Now the initial _set_all_timers timer is properly canceled when the
    plugin is unloaded.
    Also the later timers are properly deleted after they are canceled in
    _set_all_timers, avoiding some AlreadyCancelled errors.
  2. admin hostmask syntax checking updated

    committed Oct 13, 2014
    Now errors if the host field is left blank. Before it would get passed
    to the server, and on freenode it would succeed but wouldn't match
    (beacuse empty string without wildcards doesn't match anything). Now
    errors explicitly.
  3. added chanserv bug workaround to

    committed Oct 13, 2014
    Chanserv's QUIET and UNQUIET commands apparently don't support extbans.
    Added a workaround to _do_connector_operation, which should be the main
    entry point for all plugins requesting quiets or unquiets. If the target
    starts with a $, submits it as a raw mode request instead of a connector
    through chanserv.
  4. edited docstring in

    committed Oct 13, 2014
    reworded the docstring for _do_moderequest in Now makes clear
    that it only handles ban and quiet modes, not any mode.
  5. Changes to !ban and !quiet hostmask processing

    committed Oct 13, 2014
    Simplified the code paths for the !ban handler. !ban command now
    unconditionally passes given parameter through _nick_to_hostmask.
    Removed feature where a mask is given yet it still kicks (I don't think
    it's ever been used, and it was complicating the code)
    Added some simple syntax checking to the _nick_to_hostmask function
    Added handlers for invalid syntax to places where _nick_to_hostmask is
    called from.
    misc edit snuck into this commit: Added a message sent when someone
    invokes !m. Just in case it was an accident, they now know how to undo
Commits on Sep 25, 2014
  1. added !bans command

    committed Sep 24, 2014
    !bans <mask> will reply with info on when the given ban will be lifted
    !bans all will reply with all current timed bans
    !bans is aliased to !listbans
Commits on Sep 23, 2014
Commits on Sep 15, 2014
  1. fixed bug in spam plugin

    committed Sep 15, 2014
    If action is to be taken, it clears out the lines as a hackish way to
    not take action twice if the user continues to flood between when the
    plugin decides to take action and when action is actually taken.
    Turns out, clearing the lines *after* action is taken is not a very
    useful way of accomplishing this.
Commits on Sep 14, 2014
  1. changed ircop internal behavior to eliminate a race condition

    committed Sep 14, 2014
    Before, a method would request OP itself, then add one or more items to
    one of the buffers, and then set a timer to process the buffers in a few
    tenths of a second.
    The buffer processing method checks if it has op, and if it does,
    assumes it should keep op and doesn't relinquish it afterwards.
    Usually chanserv was slow enough that this was never a problem. The bot
    was never OPed before the buffer timer was up and the buffers started
    processing, so the buffer processor correctly saw it didn't have op and
    needed it for the request.
    But today chanserv was unusually fast and it OPed the bot before the
    buffers starting processing, causing the bot to keep its OP after
    processing the buffers.
    I've changed the code to eliminate the calls to get OP in places where
    it was being called preemtively of the buffer processor. This may cause
    a slightly longer delay with some commands, but 0.2 seconds shouldn't be
    enough to matter, and if chanserv is faster for good, then it especially
    doesn't matter.
Commits on Sep 13, 2014
  1. comments and delay to setting mode timers upon startup

    committed Sep 13, 2014
    Mode request timers will now wait 30 seconds upon bot startup before
    taking any action. This is to prevent modes being sent to the server
    before we're connected. It's a bit of a hack though. see comment in code
    for more details.
    Also touched up and reworded a few comments and docstrings for clarity.
Commits on Aug 30, 2014
  1. fixed OP behavior details, minor bug

    committed Aug 30, 2014
    When the bot has OP from human intervention (as opposed to OP gained in
    the process of submitting OP-requiring commands), it should not
    automatically drop OP if it does happen to submit some commands.
    A long-standing bug meant that if the become_op request was called, it
    would ignore existing OP status and remove OP, ignoring the intended
    behavior. This commit adds a simple check to see if the bot already has
    OP when a become_op request is submitted, and if so, ignores it.
    Also updated a comment with some notes to make some implementation
    details more clear.
Commits on Aug 29, 2014
  1. updated Spam plugin docstring

    committed Aug 29, 2014
  2. changed spam algorithm, simplified things

    committed Aug 29, 2014
    Now just looks for and detects two things: lines sent in a time
    interval, and repeat lines sent in an interval.
  3. fixed minor error in votd plugin

    committed Aug 29, 2014
    now correctly shows names when asking for odds on another user
Commits on Aug 25, 2014
  1. !redirect command supports hostmasks now

    committed Aug 25, 2014
    before it assumed the argument was always a nick, which would cause
    problems if it was a mask.
Commits on Aug 23, 2014
  1. Merge pull request #3 from L3viathan/master

    committed Aug 23, 2014
    once, twice, many times
Commits on Aug 17, 2014
  1. @L3viathan


    L3viathan committed Aug 17, 2014
  2. @L3viathan

    once, twice, many times

    L3viathan committed Aug 17, 2014
Commits on Jun 11, 2014
Commits on Nov 1, 2013
  1. removed /64 for ipv6 bans

    committed Nov 1, 2013
    that actually may have been overkill.
  2. changes to !ban and !quiet commands

    committed Nov 1, 2013
    freenode webchat now bans by IP
    other gateways now ban by username
    Ipv6 now bans the /64 subnet
    anything else bans the host like before
Something went wrong with that request. Please try again.