Esempio n. 1
0
    // -----------------
    // Chainey triggers.
    // -----------------

    // remove <sentence>
    void Remove(ITriggerMsg e)
    {
        if (meido.AuthLevel(e.Nick) >= 2)
        {
            chainey.Remove(e.ArgString());
            e.Reply("Removed sentence.");
        }
    }
Esempio n. 2
0
 public void Dump(ITriggerMsg e)
 {
     // Only allow owner to dump (writing temp files).
     if (meido.AuthLevel(e.Nick) == 3)
     {
         QueryTriggers.Dump(e);
     }
 }
Esempio n. 3
0
    bool Allowed(ITriggerMsg e)
    {
        if (conf.ActiveChannels.Contains(e.Channel) || meido.AuthLevel(e.Nick) >= 2)
        {
            return(true);
        }

        e.Reply("Access denied, please contact my owner for information.");
        return(false);
    }