Project

General

Profile

Newbie: autenthication and customization

Added by Azatoth Cthulhu about 5 years ago

Hi, I'm new to AdiIRC, and I've customized most of what I needed, but I'm missing a few things.
Hoping someone can help with these, either by changing existent options or adding scripts.

1) I normally connect to two different servers. Same configurations, just different addresses. The first of the two connects and goes perfectly. The second, though, doesn't do the automatic autenthication for my nickname (same nickname as in the other server, just different password, but correctly set in the configuration panel); I always have to do it manually.
With MIRC (which I was using before AdiIRC and still have on my pc), the second server doesn't have this issue, so it seems it's something about AdiIRC.
It does (or should I say "doesn't do") that regardless that I set the servers to connect at launch or that I launch AdiIRC and then connect to both manually. Any help?

2) About notices: is there a way to attach a text prefix of some kind to them? Otherwise, I'm always missing them because, despite colors, they mix up with normal messages.
Also, if I set Events -> Notice to "status", it prints them in the status window of the server they were sent from; if I set it to "active window", it prints them in the active window, (only of the same server, as before), but only there. Is there a way to have notices (with the prefix, as per the previous question) in the active window regardless of the related server AND in the status window of the related server?


Replies (14)

RE: Newbie: autenthication and customization - Added by Per Amundsen about 5 years ago

1) I assume you are using the Serverlist, have you chosen the correct Login Method for the second server?

If so, you can open File -> Rawlog before connecting, after connecting you can check the Rawlog window to see if AdiIRC is sending the login information.

2) If you want specific notice behavior, you would need to script it, you can use the on NOTICE event, something like this:

on ^*:NOTICE:*:*:{
  ; print the message to the active window
  echo $color(notice) -t $active $nick $+ : $1-

  ; print the message to the status window
  echo $color(notice) -s $active $nick $+ : $1-

  ; halt the default message
  halt
}

You can modify the output to be anything you like, including prefix etc.

RE: Newbie: autenthication and customization - Added by Per Amundsen about 5 years ago

Ops it had a small error.

on ^*:NOTICE:*:*:{
  ; print the message to the active window
  echo $color(notice) -t $active $nick $+ : $1-

  ; print the message to the status window
  echo $color(notice) -s $nick $+ : $1-

  ; halt the default message
  halt
}

RE: Newbie: autenthication and customization - Added by Azatoth Cthulhu about 5 years ago

Thanks a lot for the help!

About 1), for now I changed login method from default to NickServ (/MSG NickServ + password) and it works (the first server is still on default), is it alright or could it have some drawbacks? (I tried acouple other methods, before that, and they didn't work, I just sticked with the first that worked without trying them all.)

About 2), thanks for the code, it prints in both the active and status windows (if the active one is the status, it prints the notice two times, but that's not an issue). Anyway, I don't know how to add a prefix. I tries with:
echo "- NOTICE - " $color(notice) s $nick $+ : $1
and
echo '- NOTICE - ' $color(notice) s $nick $+ : $1
but they break the code. What's the correct syntax?

And one more thing: can those notices make the program's icon flash in Window's program bar, like highlights from channel messages and queries?

RE: Newbie: autenthication and customization - Added by Per Amundsen about 5 years ago

Yes you can leave it at that, that is the normal way to do it anyways.

In the example below, the text it self starts with "$nick", so you can add text before $nick like the example below, it also has the /flash command and a check for status window.

on ^*:NOTICE:*:*:{
  ; print the message to the active window
  echo $color(notice) -t $active PREFIXHERE $nick $+ : $1-

  ; print the message to the status window
  ; but only when the active window is not a status window
  if ($active != Status Window) {
    echo $color(notice) -s PREFIXHERE $nick $+ : $1-
  }

  ; Flashes the window until it's activated
  flash

  ; halt the default message
  halt
}

RE: Newbie: autenthication and customization - Added by Azatoth Cthulhu about 5 years ago

Thanks again!

It has some little odd behaviors, but I don't want to bother you further, I'll stick with it.

RE: Newbie: autenthication and customization - Added by Per Amundsen about 5 years ago

It's no bother, glad to help, what is the odd behavior?

RE: Newbie: autenthication and customization - Added by Azatoth Cthulhu about 5 years ago

Well, above all is the flash: it doesn't flash the program icon in Windows' program bar, if I have the focus on another program; if the focus is on AdiIRC, though, it flashes the icons of the relevant tabs/windows (where the notice was printed).
Notices are usually not very important, so, as said, I can live with it, but ideally, of course it would be best if while using other programs I could get visually notified that something happened on AdiIRC.

Other than that, if the active window inside AdiIRC is the status one, the notice gets printed there both times (this really isn't an issue; anyway, I tried tampering with the IF, but got no result).

RE: Newbie: autenthication and customization - Added by Per Amundsen about 5 years ago

I was not able to reproduce any of these issues using my last script, are you sure you are only using one version of the script?

RE: Newbie: autenthication and customization - Added by Azatoth Cthulhu about 5 years ago

Uhm, I'm not sure I understand what you mean. I'm using version 3.2 64 bit. and it's the first and only version I ever downloaded. Those behaviors are there, though.

RE: Newbie: autenthication and customization - Added by Per Amundsen about 5 years ago

I meant, do you have multiple "on ^:NOTICE::*:{" entries in your Script Editor?

RE: Newbie: autenthication and customization - Added by Azatoth Cthulhu about 5 years ago

Alright, I understood and made some tests.
First of all, I have only two other scripts: Deluxe Whois [[https://pastebin.com/DfXrnU02 and Whois Watcher [[https://pastebin.com/ekRYWd1g. As you can see in the codes, only Whois Watcher has an "on notice", yet in my tests I saw that if both of them are ignored, your code works perfectly; if either of the two (or both) are active, though, it behaves as I wrote earlier, even if the Deluxe Whois has no "on notice".

RE: Newbie: autenthication and customization - Added by Per Amundsen about 5 years ago

I think you pasted the wrong script for the second one.

But one fix in such cases is to drag my script so it's higher up in the list in the Script Editor, in that case it should trigger first.

RE: Newbie: autenthication and customization - Added by Azatoth Cthulhu about 5 years ago

I think you were looking at it before I edited the link (I noticed I had confused them), now it points to the correct one.

Anyway, thanks again for the help.

RE: Newbie: autenthication and customization - Added by Per Amundsen about 5 years ago

The "Whois Watcher" script uses SNOTICE instead of NOTICE, so they shouldn't interfere with my script, very odd.

    (1-14/14)