mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2014
Posts: 32
P
Panda Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Nov 2014
Posts: 32
Hey all,

I'm having some trouble with a popup I'm trying to write. Its intended to force a user out of all channel's they're currently in and then force join them to a channel decided upon by the Admin/IRCop.

What I have is this in my Nicklist Popups section. As you'll see its partially working but its really not great and I have this nagging feeling that there is a better way to do this.

Please help, if you can.

Thanks smile

Code:
Part All Join One:{
  set %joinpartnick $snick($chan,1)
  set %joinpartchan.temp $input(What Channel To Force Join to?,eoq,Force Part Join,%joinpartchan.temp)
  if ( # !isin %joinpartchan.temp ) {
    set %joinpartchan $instok(%joinpartchan.temp,$chr(35),-1,0)
    } else {
    set %joinpartchan %joinpartchan.temp
  }
  /sajoin %joinpartnick 0
  /sajoin %joinpartnick %joinpartchan
  unset %joinpartnick
  unset %joinpartchan
  unset %joinpartchan.temp
}

Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
Code:
Part All Join One:{
  var %nick $snick($chan,1),%i $$input(What Channel To Force Join to?,eoq,Force Part Join)
  if ($left(%i,1) != $chr(35)) %i = $chr(35) $+ %i
  sajoin %nick 0
  sajoin %nick %i
}
You need to be explicit regarding what it should do, because while the main idea is easy to guess, I don't know why you have %joinpartchan.temp and %joinpartchan, %joinpartchan.temp was used in the $input to pre-fill the editbox, but since you unset that variable it must be never filling with anything, so I figured you didn't need any of that.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard