IRC Parser
public ruby v1 · immutable# SPLIT CODE UP s = x.split("\:",3) if s[1] =~ /!/ then nick = s[1].split("!")[0] end if s[1] =~ /\ / then chan = s[1].split("\ ")[2] end if s[2] != nil then puts s[2] fullmsg = s[2].downcase upfullmsg = s[2] end if s[3] != nil then puts s[3] fullmsg = fullmsg + s[3].downcase upfullmsg = upfullmsg + s[3] end fullmsg = fullmsg.strip upfullmsg = upfullmsg.strip