Search code examples
parsingscriptingmirc

mIRC parsing for a name


So I've been getting a bothersome someone who keeps using my nickname. What I want to be able to do is perform the following command every time someone with exactly my nickname (let's say UserName) joins the channel I currently reside in:

/msg NickServ ghost UserName n0ideaHwatPassIs?

n0ideaHwatPassIs? is a sample password for our sample registered user of UserName

This sort of script would have to be able to check (in more or less real-time) if a separate user changed his/her nick to said UserName as well. If someone would be so kind as to help me with my dilemma by either pointing me to the proper documentation or working out such a script (no idea if this is as cut-and-dry as I imagined it would be at first) for me?


Solution

  • you can use a on notify event

    but first, you have to put that nickname on notify list

    type

    /notify nickname
    

    then use this script, press alt+r click on file, then new and put this script in there

    on *:notify:{
    if ($nick != $me) && ($nick == Nickyouwanthere) {
      msg NickServ ghost UserName n0ideaHwatPassIs
    }