Ignore:
Timestamp:
05/01/09 04:26:34 (3 years ago)
Author:
james
Message:

fix unknown joins error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/en/irc_join.tcl

    r1002 r1005  
    33############################################################################### 
    44# This is a bMotion plugin 
    5 # Copyright (C) James Seward 2000-2008 
     5# Copyright (C) James Seward 2000-2009 
    66# 
    77# This program is covered by the GPL, please refer the to LICENCE file in the 
     
    1212 
    1313proc bMotion_plugins_irc_default_join { nick host handle channel text } {  
    14   #if the user isban then dont bother 
    15   if {[ischanban $nick $channel] == 1 } { 
    16     bMotion_putloglev d * "dropping greeting for $nick on $channel as user is banned" 
    17     return 0 
    18   } 
     14        bMotion_putloglev 4 * "bMotion_plugins_irc_default_join $nick $host $handle $channel $text" 
     15 
     16        #if the user isban then dont bother 
     17        if {[ischanban $nick $channel] == 1 } { 
     18                bMotion_putloglev d * "dropping greeting for $nick on $channel as user is banned" 
     19                return 0 
     20        } 
    1921 
    2022        #has something happened since we last greeted? 
     
    2931 
    3032        # skip this check if handle is * as it's pointless 
    31         if {$handle == "*"} { 
     33        if {$handle != "*"} { 
    3234                # check if the user is already in the channel - probably means they've joined a 2nd client 
    3335                # or that they're about to ping out or something 
     
    8587        #set nick [bMotion_cleanNick $nick $handle] 
    8688        if {[getFriendship $nick] < 50} { 
    87                 set greetings [bMotion_abstract_all "dislike_joins"] 
     89                set greetings "dislike_joins" 
    8890        } 
    8991 
Note: See TracChangeset for help on using the changeset viewer.