"""Warns about large files"""

def handle_url(bot, user, channel, url):

    if channel == "#wow": return

    # inform about large files (over 5MB)
    size = getUrl(url).getSize()

    if not size: return
    
    size = size / 1024
    
    if size > 5:
        bot.say(channel, "File size: %s MB" % size)

"""Warns about large files"""

def handle_url(bot, user, channel, url, msg):

    if channel == "#wow": return

    # inform about large files (over 5MB)
    size = getUrl(url).getSize()

    if not size: return
    
    size = size / 1024
    
    if size > 5:
        bot.say(channel, "File size: %s MB" % size)

Update to the latest method signature
Update to the latest method signature



git-svn-id: 056f9092885898c4775d98c479d2d33d00273e45@65 dda364a1-ef19-0410-af65-756c83048fb2
