Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here
NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

You are here: Big Brother Bot ForumAdd-OnsPlugins Discussion (Moderator: MordyT)IRC Plugin?
Pages: [1]   Go Down
  Print  
Author Topic: IRC Plugin?  (Read 2434 times) Bookmark and Share
Sr. Member
****
OS: Windows
Type: Gameserver Rental Co.
Gameservers: CoD4
Posts: 182
Offline Offline
« on: January 15, 2010, 04:14:18 PM »

Does anyone think they can make an IRC plugin?

Like this

Player:!call admin Cody is hacking
IRC: <playername> reported >name> reason >reason>

I think its possible what do you all think?
Logged


Sr. Member
****
OS: Windows
Type: Gameserver Rental Co.
Gameservers: CoD4
Posts: 182
Offline Offline
« Reply #1 on: January 16, 2010, 07:55:55 PM »

I see manu admin mod has one that oes this.Dunno if tis the same code =P
Logged

Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 180
Offline Offline
WWW
« Reply #2 on: January 18, 2010, 09:17:07 AM »

i changed the notice command to work like a report command.
you use !cfh spoon hacking

if there is a moderator online it sends a pm to all online mods/admins or if there is no mods/admins online it logs the report were the notices go. so you can check them using echelon or the superadmin plugin(i think)

   
Code:
def cmd_cfh(self, data, client=None, cmd=None):
        """\
        <name> <reason> - Send a Call For Help to the Moderators about a player
        """
        m = self.parseUserCmd(data)
        if not m or m[0] == '' or m[1] == '':
            client.message('^7Invalid parameters')
            return False

        cid, notice = m
        sclient = self.findClientPrompt(cid, client)

        self.debug('trying to get admins')
        clist = self.getAdmins()

        if len(clist) > 0:
           for adm in clist:
            adm.message('^7 %s ^7has been reported for:^2 %s' % (sclient.exactName, notice))
        else:
          if sclient:
                sclient.notice(notice, None, client)
                client.message('^7Your ^5Call For Help^2 %s ^7has been sent to the Moderators about^2 %s' % (notice, sclient.exactName))
Logged

Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal