Python IRC bot module help?
<p><br>I was actually making a module for phenny bot 
<br>is called welcom.py and it welcomes every new guy who joins my channel
<br>Here is the code I used for that:</p>

<pre><code>#!/usr/bin/python

def welcome_message(phenny, input):
    phenny.say('Welcome to #example channel ' + input.nick + ' !')
welcome_message.event = 'JOIN'
welcome_message.rule = r'.*'
</code></pre>

<p>This code works perfect despite that it repeats the message 2 times, like this:</p>

<pre><code>&lt;phenny&gt; Welcome to #example channel visitornick !
&lt;phenny&gt; Welcome to #example channel visitornick !
</code></pre>

<p>Why this happens ??
I dont think I did any mistake in code.. 
coild it be connetion fault ??</p>
