~nhandler/classbot/airbot

« back to all changes in this revision

Viewing changes to classbot.pl

  • Committer: Nathan Handler
  • Date: 2012-07-14 01:51:09 UTC
  • Revision ID: nhandler@ubuntu.com-20120714015109-ybi030jfil3mb45l
Change Instructors to Speakers

Show diffs side-by-side

added added

removed removed

Lines of Context:
192
192
                $description=~s/$/\\n/;
193
193
                utf8::decode($description);
194
194
                my($instructors,$curshelpers,$curevent,$curslides,$curmoderated,$curlocale);
195
 
                if($description =~ m/Instructors?\s*:\s*(.*?)$/im) {
 
195
                if($description =~ m/Speakers?\s*:\s*(.*?)$/im) {
196
196
                        $instructors=$1;
197
197
                }
198
198
                else {
288
288
                                $topicUpdate=1;
289
289
                        }
290
290
                        if($leaders ne $instructors) { #If the instructors have changed
291
 
                                Irssi::print("Instructors have changed ($instructors)") if($debug);
 
291
                                Irssi::print("Speakers have changed ($instructors)")    if($debug);
292
292
                                Irssi::settings_set_str('classroom_leaders', $instructors);
293
293
                                $topicUpdate=1;
294
294
                                $voiceUpdate=1;
320
320
                                &refresh_settings();
321
321
                                my($instructorString, $eventString, $slideString, $sessionString, $topicString, $qtopicString);
322
322
                                #TRANSLATORS: %s is a list of instructors for the session.
323
 
                                $instructorString = sprintf($d->nget("Instructor: %s - ", "Instructors: %s - ", keys(%leaders)), $leaders);
 
323
                                $instructorString = sprintf($d->nget("Instructor: %s - ", "Speakers: %s - ", keys(%leaders)), $leaders);
324
324
                                utf8::decode($instructorString);
325
325
                                #Is an event going on?
326
326
                                if($event !~ m/^\s*$/) {
422
422
                                my($server)=Irssi::server_find_tag('freenode');
423
423
                                #TRANSLATORS: The first %s is the name of the classroom session. The second %s is a list of instructors for the session.
424
424
#                               $server->command("MSG $backstage ".sprintf($d->get("%s is starting in 10 minutes. Instructors: %s."), $summary, $instructors));
425
 
                                Irssi::print("$summary is starting in 10 minutes. Instructors: $instructors.") if($debug);
 
425
                                Irssi::print("$summary is starting in 10 minutes. Speakers: $instructors.") if($debug);
426
426
                                $senttenprior=1;
427
427
 
428
428
                                my(@instructors)=split(/, /,$instructors);
482
482
                                        utf8::decode($missing);
483
483
                                        #TRANSLATORS: %s is a list of missing classroom instructors.
484
484
#                                       $server->command("MSG $backstage $notifyString: ".sprintf($d->get("The following instructors are missing: %s."), $missing));
485
 
                                        Irssi::print("Missing Instructors: $missing.")  if($debug);
 
485
                                        Irssi::print("Missing Speakers: $missing.")     if($debug);
486
486
                                }
487
487
                                #TRANSLATORS: The first %s is the name of the session. The second %s is a list of instructors for the session. The third %s is the IRC channel name.
488
488
                                my($dent_text)=sprintf($d->get("%s (%s) is starting in 10 minutes in %s"), $summary, $instructors, $chan);