<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/1557" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2002-04-20T23:36:00-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/1557</id>

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-04-20T23:36:00-04:00</updated>

		<published>2002-04-20T23:36:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6364#p6364</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6364#p6364"/>
		<title type="html"><![CDATA[kick message with handle n date]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6364#p6364"><![CDATA[
true, but i couldn't find any tcl script work for dcc and public, showing handle n date in a kickmsg, like z was kicked by eggy(Apr 20 AW: be nice plzz), i mean if i can use .kickban nick in dcc, same command for public, can u help me plz? i will appreciate it.<p>Statistics: Posted by Guest — Sat Apr 20, 2002 11:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Petersen]]></name></author>
		<updated>2002-04-20T22:36:00-04:00</updated>

		<published>2002-04-20T22:36:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6362#p6362</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6362#p6362"/>
		<title type="html"><![CDATA[kick message with handle n date]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6362#p6362"><![CDATA[
why bother messing with the source when its much easier just to rewrite the kickban command in tcl?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=60">Petersen</a> — Sat Apr 20, 2002 10:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-04-20T21:56:00-04:00</updated>

		<published>2002-04-20T21:56:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6361#p6361</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6361#p6361"/>
		<title type="html"><![CDATA[kick message with handle n date]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6361#p6361"><![CDATA[
hi, i will really appreciate if someone can help me plz, when i type in partyline .kickban nick and at main channel's window it should show like this<br>Z was kicked by eggdrop(Apr 20, AW: behave plz)<br>instead of Z was kicked by eggdrop(behave plz)<br><br> here are the source code:<br><br>static void cmd_kickban(struct userrec *u, int idx, char *par)<br>{<br>  struct chanset_t *chan;<br>  char *chname, *nick, *s1;<br>  memberlist *m;<br>  char s[UHOSTLEN];<br>  char bantype = 0;<br><br>  if (!par[0]) {<br>    dprintf(idx, "Usage: kickban [channel] [-|@]&lt;nick&gt; [reason]n");<br>    return;<br>  }<br>  if (strchr(CHANMETA, par[0]) != NULL)<br>    chname = newsplit(&amp;par);<br>  else<br>    chname = 0;<br>  if (!(chan = has_op(idx, chname)))<br>    return;<br>  if (!channel_active(chan)) {<br>    dprintf(idx, "I'm not on %s right now!n", chan-&gt;dname);<br>    return;<br>  }<br>  if (!me_op(chan)) {<br>    dprintf(idx, "I can't help you now because I'm not a channel op on %s.n",<br>    chan-&gt;dname);<br>    return;<br>  }<br>  putlog(LOG_CMDS, "*", "#%s# (%s) kickban %s", dcc[idx].nick,<br> chan-&gt;dname, par);<br>  nick = newsplit(&amp;par);<br>  if ((nick[0] == '@') || (nick[0] == '-')) {<br>    bantype = nick[0];<br>    nick++;<br>  }<br>  if (match_my_nick(nick)) {<br>    dprintf(idx, "I'm not going to kickban myself.n");<br>    return;<br>  } else {<br>    m = ismember(chan, nick);<br>    if (!m)<br>      dprintf(idx, "%s is not on %sn", nick, chan-&gt;dname);<br>    else {<br>      egg_snprintf(s, sizeof s, "%s!%s", m-&gt;nick, m-&gt;userhost);<br>      u = get_user_by_host(s);<br>      get_user_flagrec(u, &amp;victim, chan-&gt;dname);<br>      if ((chan_op(victim) || (glob_op(victim) &amp;&amp; !chan_deop(victim))) &amp;&amp;<br>  !(chan_master(user) || glob_master(user))) {<br>dprintf(idx, "%s is a legal op.n", nick);<br>return;<br>      }<br>      if ((chan_master(victim) || glob_master(victim)) &amp;&amp;<br>  !(glob_owner(user) || chan_owner(user))) {<br>dprintf(idx, "%s is a %s master.n", nick, chan-&gt;dname);<br>return;<br>      }<br>      if (glob_bot(victim) &amp;&amp; !(glob_owner(victim) || chan_owner(victim))) {<br>dprintf(idx, "%s is another channel bot!n", nick);<br>return;<br>      }<br>      if (use_exempts &amp;&amp;<br>  (u_match_mask(global_exempts,s) || u_match_mask(chan-&gt;exempts, s))) {<br>dprintf(idx, "%s is permanently exempted!n", nick);<br>return;<br>      }<br>      if (m-&gt;flags &amp; CHANOP)<br>add_mode(chan, '-', 'o', m-&gt;nick);<br>      check_exemptlist(chan, s);<br>      switch (bantype) {<br>case '@':<br>  s1 = strchr(s, '@');<br>  s1 -= 3;<br>  s1[0] = '*';<br>  s1[1] = '!';<br>  s1[2] = '*';<br>  break;<br>case '-':<br>  s1 = strchr(s, '-');<br>  s1[1] = '*';<br>  s1--;<br>  s1[0] = '*';<br>  break;<br>default:<br>  s1 = quickban(chan, m-&gt;userhost);<br>  break;<br>      }<br>      if (bantype == '@' || bantype == '-')<br>do_mask(chan, chan-&gt;channel.ban, s1, 'b');<br>      if (!par[0])<br>par = "requested";<br>      dprintf(DP_SERVER, "KICK %s %s :%sn", chan-&gt;name, m-&gt;nick, par);<br>      m-&gt;flags |= SENTKICK;<br>      u_addban(chan, s1, dcc[idx].nick, par, now + (60 * ban_time), 0);<br>      dprintf(idx, "Okay, done.n");<br>    }<br>  }<br>}<br><br><p>Statistics: Posted by Guest — Sat Apr 20, 2002 9:56 pm</p><hr />
]]></content>
	</entry>
	</feed>
