on *:JOIN:*:{ if ($chan == #sourcepug $+ %pugza. $+ [ $nick ]) { <===== first if statement starts /topic #sourcepug $+ %pugza. $+ [ $nick ] 1SourcePug: %ppleft more people needed to join the channel for the pug to start. <==== new line here and copy everything from within the brackets of the second if statement here } <==== first if statement ends if ($chan == #sourcepug $+ %pugza. $+ [ $nick ]) { <===== second if statement starts, which is EXACTLY the same as the first and thus unneeded if (%number == 5) { /mode $chan +i /msg $chan [SOURCEPUG] Now find a scrim, when you are done type .ready and I will message the channel with the vent information. } else { inc %number dec %ppleft msg $chan Hello $nick $+ , You are the %number person to join this channel. Once the 5th person joins this channel the channel will lock and the bot will find the scrim. /topic $chan 1SourcePug: %ppleft more people needed to join the channel for the pug to start. } } <==== second if statement ends }