EpicNet.Ru - Форум IRC Чата

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.



Script for search messages

Сообщений 1 страница 2 из 2

1

Hi!

I'm looking for help in creating a script (the first of the two I would need, but the other I will write later as soon as I have a clearer idea) that does the following:

1. The ability to search for a word, phrase, emoji or anything written in the active channel, then showing the result in a special window, with all the nicknames who wrote it. And, if possible, make sure it is in real time. That is, even after having searched for the word / phrase / etc, if someone were to continue writing what they were looking for on the channel, make this appear too.

2. The ability to display in a window on purpose, and in real time, all the messages / actions / etc of a chosen nick (with the possibility of doing it with multiple nicknames) until this function is deactivated. With the possibility to choose whether to display in the window only messages / actions / etc written in certain channels, or in all. Obviously in the case of multiple channels there would be to appear in which channel that thing was written.

End of the script, then I needed a little help with this line of code:

Код:
on @*:TEXT:*help*:#exemple: if (%bw_work == ON && !$bwextcheck($nick)) { .ban $chan $nick 2 | .ban $chan $nick 3 | echo -st 04◖ $scriptline ◗  $nick was banned for saying: " $1- " }

I need, in this same line, instead of

Код:
.ban $chan $nick 2 | .ban $chan $nick 3

to set this type of ban

Код:
/mode #channel +b m:*!*@exemple.com

The +b:m is for silencing a person by their address and the one written above is the command to do it, let's say manually, and I have no idea how to write it in that line to do it automatically, nor how to put it, if you can put it, with the address for the ban of type 2 and 3, for this I put the example address *!*@exemple.com

That's all I think  http://www.kolobok.us/smiles/big_standart/bye.gif

2

1371,366 написал(а):

1. The ability to search for a word, phrase, emoji or anything written in the active channel, then showing the result in a special window, with all the nicknames who wrote it. And, if possible, make sure it is in real time. That is, even after having searched for the word / phrase / etc, if someone were to continue writing what they were looking for on the channel, make this appear too.

В качестве теста попробуйте использовать этот код скрипта:

Код:
menu channel {
  Find Text: ft $$?="Enter any Character/Word/Phrase to search:"
}
alias -l ft {
  set %ft_chan $active | set %ft_win @FindText | set %ft_mask $+(*,$1-,*)
  window -a %ft_win | filter -wwc %ft_chan %ft_win %ft_mask
  echo -tc notice %ft_win On the channel $+(12,%ft_chan,) for $+(04,%ft_mask,) was found $+(07,$filtered,) lines.
}
on *:TEXT:%ft_mask:%ft_chan: if ($window(%ft_win)) aline -h %ft_win $timestamp $+(<,$nick,>) $1-

Управление осуществляется через контекстное меню "Find Text".

Если вам подходит этот вариант реализации и код работает исправно, то мы перейдём к решению следующих вопросов.

Подпись автора

[html]<style>img {vertical-align:middle;}.hnet{color:#FFFFFF;}.hstar{color:#DE0000;}.htext{font-family:Verdana;font-size:13px;color:#6E1E00;}.heading{font-family:Verdana;font-size:13px;font-weight:bold;background-color:#4897E7;}.stitle{font-family:Verdana;font-size:12px;}.dot{color:#808000;}.desc{color:#ADADAD;}a .curl{font-family:Verdana;font-size:13px;color:#3A92CD;}</style><table><tr><td width="20px" height="20px"><img src="http://forumstatic.ru/files/000d/c9/8c/34681.jpg"></td><td><a href="http://forum.epicnet.ru/viewtopic.php?id=234"><span class="heading"> <span class="hstar">★</span> <span class="hnet">EpicNet.Ru</span> <span class="hstar">★</span> </span><span class="htext"> - IRC Чат © 2008</span></a></td></tr><tr><td></td><td><div class="stitle"><span class="dot">•</span> <span class="desc">Вход через вебгейт:</span> <a href="http://irc.epicnet.ru"><span class="curl">http://irc.epicnet.ru</span></a><br><span class="dot">•</span> <span class="desc">Сервер:</span> irc.epicnet.ru <span class="desc">Порты:</span> 6667, 6668 (ssl)<br><div></td></tr></table>[/html]