From: dms Date: Sat, 12 Aug 2000 12:43:45 +0000 (+0000) Subject: Added getNickInUse() X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=8d36fb33a0439ba2943a453fba157fb732c9473b;p=infobot.git Added getNickInUse() git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@40 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/blootbot/src/IRC/Schedulers.pl b/blootbot/src/IRC/Schedulers.pl index fff610e..ac0c82c 100644 --- a/blootbot/src/IRC/Schedulers.pl +++ b/blootbot/src/IRC/Schedulers.pl @@ -456,6 +456,18 @@ sub shmFlush { &ScheduleThis(5, "shmFlush") if (@_); } +sub getNickInUse { + if ($ident eq $param{'ircNick'}) { + &status("okay, got my nick back."); + return; + } + + &status("Trying to get my nick back."); + &nick($param{'ircNick'}); + + &ScheduleThis(5, "getNickInUse") if (@_); +} + sub uptimeCycle { &uptimeWriteFile();